/* Custom CSS for Snow Lynx Software LLC */
:root {
  --primary-color: #1976d2;
  --primary-light: #42a5f5;
  --success-color: #4caf50;
  --background-light: #fafafa;
  --text-dark: #212121;
  --text-medium: #757575;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.2);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Open Sans", sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  padding-top: 76px; /* Account for fixed navbar */
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  line-height: 1.2;
}

.display-4,
.display-5 {
  font-weight: 700;
}

/* Navigation */
.navbar {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95) !important;
  transition: all 0.3s ease;
}

.navbar-brand {
  font-family: "Montserrat", sans-serif;
  font-size: 1.5rem;
}

.navbar-nav .nav-link {
  font-weight: 500;
  margin: 0 0.5rem;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--background-light) 0%, #e3f2fd 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 2rem 0;
}

.hero-section h1 {
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}

.hero-section .lead {
  color: var(--primary-color);
  font-weight: 600;
}

/* Buttons */
.btn {
  border-radius: 8px;
  font-weight: 600;
  padding: 0.75rem 2rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: #1565c0;
  border-color: #1565c0;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-light {
  background-color: white;
  color: var(--primary-color);
  border: none;
}

.btn-light:hover {
  background-color: #f8f9fa;
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Cards */
.card {
  border-radius: 12px;
  transition: all 0.3s ease;
  overflow: hidden;
}

.service-card:hover,
.blog-card:hover,
.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg) !important;
}

.service-card .service-icon {
  transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1);
}

/* Technology Stack */
.tech-category {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  height: 100%;
  transition: all 0.3s ease;
}

.tech-category:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.tech-tags .badge {
  font-size: 0.85rem;
  padding: 0.5rem 0.75rem;
  border-radius: 20px;
}

/* Blog Cards */
.blog-card .card-img-top {
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-card:hover .card-img-top {
  transform: scale(1.05);
}

/* Testimonials */
.testimonial-card {
  border-left: 4px solid var(--primary-color);
}

.testimonial-author {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

/* Sections */
section {
  position: relative;
  overflow: hidden;
}

.bg-light {
  background-color: var(--background-light) !important;
}

/* Footer */
footer {
  background: var(--text-dark) !important;
}

.social-links a {
  transition: all 0.3s ease;
  display: inline-block;
}

.social-links a:hover {
  transform: translateY(-3px);
  color: var(--primary-light) !important;
}

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

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

/* Loading states */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-section {
    min-height: auto;
    padding: 4rem 0;
  }

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

  .display-5 {
    font-size: 2rem;
  }

  .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }

  .tech-category {
    margin-bottom: 1rem;
  }

  .navbar-brand {
    font-size: 1.25rem;
  }
}

@media (max-width: 576px) {
  body {
    padding-top: 70px;
  }

  .hero-section h1 {
    font-size: 2rem;
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .me-3 {
    margin-right: 0 !important;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* Focus states for accessibility */
.btn:focus,
.nav-link:focus,
a:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .card {
    border: 2px solid var(--text-dark);
  }

  .btn-outline-primary {
    border-width: 2px;
  }
}

/* Print styles */
@media print {
  .navbar,
  .social-links,
  footer {
    display: none;
  }

  body {
    padding-top: 0;
  }

  .hero-section {
    min-height: auto;
    background: white !important;
  }

  .card {
    box-shadow: none !important;
    border: 1px solid #ccc !important;
  }
}
