/* OpScale Website - Main Stylesheet */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #ffffff;
}

/* OpScale Color Scheme */
:root {
  --primary-blue: #0066CC;
  --primary-gray: #666666;
  --light-gray: #f8f9fa;
  --dark-gray: #333333;
  --white: #ffffff;
  --border-color: #e9ecef;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--dark-gray);
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.75rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
  color: var(--primary-gray);
}

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

a:hover {
  color: #0052a3;
}

/* Layout Containers */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section {
  padding: 3rem 0;
}

/* CSS Grid Layout System */
.grid {
  display: grid;
  gap: 2rem;
}

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

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

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

/* Flexbox Utilities */
.flex {
  display: flex;
}

.flex-column {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.align-center {
  align-items: center;
}

.align-start {
  align-items: flex-start;
}

/* Header Styles */
.header {
  background-color: var(--white);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
}

.logo-link {
  color: var(--primary-blue);
  text-decoration: none;
  transition: color 0.3s ease;
}

.logo-link:hover {
  color: #0052a3;
}

.logo-img {
  height: 32px;
  width: auto;
  display: block;
  transition: opacity 0.3s ease;
}

.logo-link:hover .logo-img {
  opacity: 0.8;
}

/* Navigation Styles */
.nav {
  display: none;
}

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

.nav-link {
  color: var(--primary-gray);
  font-weight: 500;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-blue);
  border-bottom-color: var(--primary-blue);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 24px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 101;
}

.hamburger-line {
  width: 100%;
  height: 2px;
  background-color: var(--primary-gray);
  transition: all 0.3s ease;
  transform-origin: center;
}

.menu-toggle:hover .hamburger-line {
  background-color: var(--primary-blue);
}

.menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Navigation */
.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--white);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.mobile-nav.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.mobile-nav-list {
  list-style: none;
  padding: 1rem 0;
}

.mobile-nav-item {
  border-bottom: 1px solid var(--border-color);
}

.mobile-nav-item:last-child {
  border-bottom: none;
}

.mobile-nav-link {
  display: block;
  padding: 1rem;
  color: var(--primary-gray);
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  background-color: var(--light-gray);
  color: var(--primary-blue);
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

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

.btn-primary:hover {
  background-color: #0052a3;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

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

.btn-secondary:hover {
  background-color: var(--primary-blue);
  color: var(--white);
}

/* Card Styles */
.card {
  background-color: var(--white);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Form Styles */
.form-group {
  margin-bottom: 1.5rem;
}

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

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

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

/* Enhanced Footer Styles */
.footer {
  background-color: var(--dark-gray);
  color: var(--white);
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.footer-section {
  display: flex;
  flex-direction: column;
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  margin-bottom: 1rem;
}

.footer-logo-img {
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-description {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.footer-contact p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.footer-contact strong {
  color: var(--white);
  font-weight: 600;
}

.footer-contact a {
  color: var(--white);
  text-decoration: underline;
}

.footer-contact a:hover {
  color: rgba(255, 255, 255, 0.8);
}

.footer-heading {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--primary-blue);
  padding-bottom: 0.5rem;
}

.footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.footer-link {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-copyright p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin: 0;
}

.footer-meta p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  margin: 0;
}

/* Footer Responsive Styles */
@media (min-width: 768px) {
  .footer-main {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
  }
  
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

@media (min-width: 1024px) {
  .footer {
    padding: 4rem 0 2rem;
  }
  
  .footer-main {
    gap: 4rem;
  }
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--light-gray) 0%, var(--white) 100%);
  padding: 4rem 0;
  text-align: center;
}

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

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--dark-gray);
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--primary-gray);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* About Section Enhancements */
.about-content {
  padding-right: 2rem;
}

.lead {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--dark-gray);
  margin-bottom: 1.5rem;
}

.about-highlights {
  margin: 2rem 0;
}

.highlight-item {
  margin-bottom: 1.5rem;
}

.highlight-item h4 {
  color: var(--primary-blue);
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.highlight-item p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* Expertise Grid */
.about-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 400px;
}

.expertise-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.expertise-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.expertise-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.expertise-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--dark-gray);
}

.expertise-card p {
  font-size: 0.875rem;
  color: var(--primary-gray);
  margin: 0;
}

/* Feature Cards */
.feature-card {
  text-align: center;
  padding: 2rem 1rem;
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  color: var(--dark-gray);
  margin-bottom: 1rem;
}

.feature-card p {
  color: var(--primary-gray);
}

/* Background Utilities */
.bg-light {
  background-color: var(--light-gray);
}

/* Section Subtitle */
.section-subtitle {
  font-size: 1.125rem;
  color: var(--primary-gray);
  max-width: 600px;
  margin: 0 auto;
}

/* Call to Action Section */
.cta-section {
  text-align: center;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, var(--primary-blue) 0%, #0052a3 100%);
  border-radius: 12px;
  color: var(--white);
}

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

.cta-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.125rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Button Enhancements */
.btn-large {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

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

.btn-secondary:hover {
  background-color: var(--primary-blue);
  color: var(--white);
}

/* CTA Section Button Overrides */
.cta-section .btn-secondary {
  color: var(--white);
  border-color: var(--white);
}

.cta-section .btn-secondary:hover {
  background-color: var(--white);
  color: var(--primary-blue);
}

.cta-section .btn-primary {
  background-color: var(--white);
  color: var(--primary-blue);
}

.cta-section .btn-primary:hover {
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--primary-blue);
}

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

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.hidden {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Responsive Design - Mobile First Approach */

/* Tablet Styles (768px and up) */
@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }
  
  .section {
    padding: 4rem 0;
  }
  
  .hero {
    padding: 5rem 0;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-subtitle {
    font-size: 1.375rem;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .about-content {
    padding-right: 3rem;
  }
  
  .hero-actions {
    gap: 1.5rem;
  }
  
  /* Services page tablet styles */
  .services-hero {
    padding: 5rem 0;
  }
  
  .services-hero h1 {
    font-size: 3rem;
  }
  
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .menu-toggle {
    display: none;
  }
  
  .nav {
    display: block;
  }
  
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* Desktop Styles (1024px and up) */
@media (min-width: 1024px) {
  .section {
    padding: 5rem 0;
  }
  
  .hero {
    padding: 6rem 0;
  }
  
  .hero-title {
    font-size: 3.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.5rem;
  }
  
  h1 {
    font-size: 3rem;
  }
  
  h2 {
    font-size: 2.25rem;
  }
  
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .about-content {
    padding-right: 4rem;
  }
  
  .cta-section {
    padding: 4rem 3rem;
  }
  
  /* Services page desktop styles */
  .services-hero {
    padding: 6rem 0;
  }
  
  .services-hero h1 {
    font-size: 3.5rem;
  }
  
  .tech-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Large Desktop Styles (1200px and up) */
@media (min-width: 1200px) {
  .container {
    padding: 0 3rem;
  }
  
  .section {
    padding: 6rem 0;
  }
  
  .hero {
    padding: 7rem 0;
  }
}

/* Services Page Styles */
.services-hero {
  background: linear-gradient(135deg, var(--primary-blue) 0%, #0052a3 100%);
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}

.services-hero h1 {
  color: var(--white);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.services-hero .hero-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto;
}

/* Service Category Sections */
.service-category {
  margin-bottom: 3rem;
}

.service-header {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 3rem;
  text-align: left;
}

.service-icon {
  font-size: 3rem;
  flex-shrink: 0;
}

.service-header h2 {
  margin-bottom: 0.5rem;
  color: var(--dark-gray);
}

.service-description {
  font-size: 1.125rem;
  color: var(--primary-gray);
  margin: 0;
  max-width: 600px;
}

/* Technology Grid */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.tech-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-left: 4px solid var(--primary-blue);
}

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

.tech-logo {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.tech-card h3 {
  color: var(--dark-gray);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.tech-card p {
  color: var(--primary-gray);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* Alternating Background Colors */
.section:nth-child(even) .tech-card {
  background: var(--light-gray);
}

.bg-light .tech-card {
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Mobile-specific styles */
@media (max-width: 767px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.125rem;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-actions .btn {
    width: 100%;
    max-width: 280px;
  }
  
  .about-content {
    padding-right: 0;
    margin-bottom: 2rem;
  }
  
  .expertise-grid {
    grid-template-columns: 1fr;
    max-width: 300px;
  }
  
  .cta-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-actions .btn {
    width: 100%;
    max-width: 280px;
  }
  
  .feature-card {
    padding: 1.5rem 0.5rem;
  }
  
  /* Services page mobile styles */
  .services-hero {
    padding: 3rem 0;
  }
  
  .services-hero h1 {
    font-size: 2rem;
  }
  
  .services-hero .hero-subtitle {
    font-size: 1.125rem;
  }
  
  .service-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .service-icon {
    align-self: center;
  }
  
  .tech-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .tech-card {
    padding: 1.5rem;
  }
}

/* High DPI Display Support */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Optimize for high DPI displays */
  .card {
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.08);
  }
}

/* Print Styles */
@media print {
  .header,
  .footer,
  .btn,
  .menu-toggle {
    display: none;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  .container {
    max-width: none;
    padding: 0;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}
/* Contact
 Form Styles */
.contact-form-container {
  max-width: 800px;
  margin: 0 auto;
}

.contact-form {
  background: var(--white);
  padding: 3rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  margin-bottom: 3rem;
}

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

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--dark-gray);
  font-size: 0.95rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.875rem;
  border: 2px solid var(--border-color);
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
  background-color: var(--white);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
  background-color: #fafbfc;
}

.form-input:invalid:not(:focus):not(:placeholder-shown),
.form-textarea:invalid:not(:focus):not(:placeholder-shown) {
  border-color: #dc3545;
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.5;
}

.field-error {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  font-weight: 500;
}

.field-help {
  color: var(--primary-gray);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.field-error.show {
  display: block !important;
}

/* Message Counter */
#message-counter {
  text-align: right;
  font-size: 0.8rem;
  color: var(--primary-gray);
}

#message-counter.warning {
  color: #f39c12;
}

#message-counter.error {
  color: #dc3545;
}

/* Submit Button */
.contact-form .btn {
  width: 100%;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  position: relative;
  overflow: hidden;
}

.btn-loading {
  display: none;
}

.contact-form .btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.contact-form .btn:disabled:hover {
  transform: none;
  box-shadow: var(--shadow);
}

/* Form Footer */
.form-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.privacy-notice {
  font-size: 0.875rem;
  color: var(--primary-gray);
  text-align: center;
  margin: 0;
}

.privacy-link {
  color: var(--primary-blue);
  text-decoration: underline;
}

.privacy-link:hover {
  color: #0052a3;
}

/* Success and Error Messages */
.message {
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  text-align: center;
}

.success-message {
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}

.success-message h3 {
  color: #155724;
  margin-bottom: 0.5rem;
}

.error-message {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

.error-message h3 {
  color: #721c24;
  margin-bottom: 0.5rem;
}

.error-message a {
  color: #721c24;
  text-decoration: underline;
}

.error-message a:hover {
  color: #491217;
}

/* Contact Info Section */
.contact-info {
  background: var(--light-gray);
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
}

.contact-info h3 {
  color: var(--dark-gray);
  margin-bottom: 1rem;
}

.contact-info p {
  margin-bottom: 0.75rem;
}

.contact-info a {
  color: var(--primary-blue);
  font-weight: 500;
}

/* Form Validation States */
.form-input.valid,
.form-textarea.valid {
  border-color: #28a745;
}

.form-input.invalid,
.form-textarea.invalid {
  border-color: #dc3545;
}

/* Loading State */
.form-loading .btn-text {
  display: none;
}

.form-loading .btn-loading {
  display: inline;
}

/* Responsive Contact Form */
@media (max-width: 768px) {
  .contact-form {
    padding: 2rem 1.5rem;
    margin: 0 1rem 2rem;
  }
  
  .contact-info {
    margin: 0 1rem;
    padding: 1.5rem;
  }
  
  .form-input,
  .form-textarea {
    padding: 0.75rem;
  }
  
  .contact-form .btn {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .contact-form {
    padding: 1.5rem 1rem;
  }
  
  .message {
    padding: 1.5rem;
    margin: 0 1rem 1.5rem;
  }
}/* Priva
cy Policy Page Styles */
.privacy-content {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.7;
}

.privacy-intro {
  background: var(--light-gray);
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 3rem;
  border-left: 4px solid var(--primary-blue);
}

.privacy-intro .lead {
  font-size: 1.125rem;
  color: var(--dark-gray);
  margin-bottom: 1rem;
}

.privacy-intro p:last-child {
  margin-bottom: 0;
  font-size: 0.95rem;
  color: var(--primary-gray);
}

.privacy-section {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.privacy-section:last-of-type {
  border-bottom: none;
  margin-bottom: 2rem;
}

.privacy-section h2 {
  color: var(--primary-blue);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-blue);
}

.privacy-section h3 {
  color: var(--dark-gray);
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.privacy-section p {
  margin-bottom: 1rem;
  color: var(--primary-gray);
}

.privacy-section ul {
  margin: 1rem 0 1.5rem 1.5rem;
  padding-left: 0;
}

.privacy-section li {
  margin-bottom: 0.75rem;
  color: var(--primary-gray);
  line-height: 1.6;
}

.privacy-section li strong {
  color: var(--dark-gray);
  font-weight: 600;
}

.privacy-section a {
  color: var(--primary-blue);
  text-decoration: underline;
  font-weight: 500;
}

.privacy-section a:hover {
  color: #0052a3;
  text-decoration: none;
}

.contact-details {
  background: var(--light-gray);
  padding: 1.5rem;
  border-radius: 6px;
  margin: 1.5rem 0;
}

.contact-details p {
  margin-bottom: 0.5rem;
}

.contact-details p:last-child {
  margin-bottom: 0;
}

.contact-details strong {
  color: var(--dark-gray);
  font-weight: 600;
}

.privacy-footer {
  background: var(--light-gray);
  padding: 1.5rem;
  border-radius: 6px;
  margin-top: 2rem;
  text-align: center;
  border: 1px solid var(--border-color);
}

.privacy-footer p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--primary-gray);
  font-style: italic;
}

/* Privacy Policy Table of Contents */
.privacy-toc {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 3rem;
  box-shadow: var(--shadow);
}

.privacy-toc h2 {
  color: var(--primary-blue);
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  text-align: center;
  border-bottom: 2px solid var(--primary-blue);
  padding-bottom: 0.5rem;
}

.toc-nav {
  max-width: 600px;
  margin: 0 auto;
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.toc-link {
  display: block;
  padding: 0.75rem 1rem;
  background: var(--light-gray);
  border-radius: 6px;
  color: var(--dark-gray);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
}

.toc-link:hover {
  background: var(--primary-blue);
  color: var(--white);
  border-left-color: var(--white);
  transform: translateX(4px);
}

/* Privacy Policy Mobile Styles */
@media (max-width: 768px) {
  .privacy-content {
    padding: 0 1rem;
    /* Improve mobile performance for long content */
    contain: layout style;
    will-change: scroll-position;
  }
  
  .privacy-intro {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .privacy-intro .lead {
    font-size: 1rem;
    line-height: 1.6;
  }
  
  .privacy-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    /* Optimize rendering for mobile */
    contain: layout;
  }
  
  .privacy-section h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    line-height: 1.3;
  }
  
  .privacy-section h3 {
    font-size: 1.125rem;
    margin-top: 1.5rem;
    line-height: 1.4;
  }
  
  .privacy-section p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    /* Improve text readability on mobile */
    text-rendering: optimizeLegibility;
  }
  
  .privacy-section ul {
    margin-left: 1rem;
    padding-left: 0.5rem;
  }
  
  .privacy-section li {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
    /* Better text wrapping on mobile */
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  .contact-details {
    padding: 1rem;
    font-size: 0.95rem;
  }
  
  .privacy-footer {
    padding: 1rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .privacy-content {
    /* Additional mobile optimizations for small screens */
    font-size: 14px;
    line-height: 1.5;
  }
  
  .privacy-section h2 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
  }
  
  .privacy-section h3 {
    font-size: 1rem;
    margin-top: 1rem;
    margin-bottom: 0.75rem;
  }
  
  .privacy-section p {
    font-size: 0.9rem;
    margin-bottom: 0.875rem;
  }
  
  .privacy-section ul {
    margin-left: 0.5rem;
    padding-left: 0.25rem;
  }
  
  .privacy-section li {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }
  
  .privacy-intro {
    padding: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .privacy-intro .lead {
    font-size: 0.95rem;
  }
  
  /* Improve touch targets for links */
  .privacy-section a {
    padding: 2px 0;
    display: inline-block;
    min-height: 44px;
    line-height: 1.4;
  }
  
  /* Table of Contents Mobile Styles */
  .privacy-toc {
    padding: 1rem;
    margin-bottom: 2rem;
  }
  
  .privacy-toc h2 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
  }
  
  .toc-list {
    gap: 0.5rem;
  }
  
  .toc-link {
    padding: 0.625rem 0.75rem;
    font-size: 0.9rem;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}/* Intera
ctive Elements Enhancement */

/* Ripple Effect for Buttons */
.btn {
  position: relative;
  overflow: hidden;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: scale(0);
  animation: ripple-animation 0.6s linear;
  pointer-events: none;
}

@keyframes ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Enhanced Card Hover Effects */
.card,
.tech-card,
.feature-card,
.expertise-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover,
.tech-card:hover,
.feature-card:hover,
.expertise-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Page Loading Animation */
body {
  transition: opacity 0.3s ease-in-out;
}

.page-loaded {
  animation: fadeInUp 0.6s ease-out;
}

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

/* Enhanced Form Interactions */
.form-input:focus,
.form-textarea:focus {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.15);
}

.form-input.valid {
  border-color: #28a745;
  background-color: rgba(40, 167, 69, 0.05);
}

.form-input.invalid {
  border-color: #dc3545;
  background-color: rgba(220, 53, 69, 0.05);
}

.form-textarea.valid {
  border-color: #28a745;
  background-color: rgba(40, 167, 69, 0.05);
}

.form-textarea.invalid {
  border-color: #dc3545;
  background-color: rgba(220, 53, 69, 0.05);
}

/* Field Error Styling */
.field-error {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.field-error.show {
  opacity: 1;
  transform: translateY(0);
}

/* Message Counter Styling */
.field-help {
  font-size: 0.875rem;
  color: var(--primary-gray);
  margin-top: 0.25rem;
}

#message-counter.warning {
  color: #ffc107;
  font-weight: 500;
}

#message-counter.error {
  color: #dc3545;
  font-weight: 600;
}

/* Form Loading State */
.form-loading {
  opacity: 0.7;
  pointer-events: none;
}

.form-loading .btn {
  position: relative;
}

.form-loading .btn-text {
  opacity: 0;
}

.form-loading .btn-loading {
  display: inline-block !important;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

/* Success and Error Messages */
.message {
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.4s ease;
}

.message[style*="block"] {
  opacity: 1;
  transform: translateY(0);
}

.success-message {
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}

.success-message h3 {
  color: #155724;
  margin-bottom: 0.5rem;
}

.error-message {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

.error-message h3 {
  color: #721c24;
  margin-bottom: 0.5rem;
}

/* Scroll to Top Button (Optional Enhancement) */
.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background-color: var(--primary-blue);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  background-color: #0052a3;
  transform: translateY(-3px);
}

/* Enhanced Navigation Transitions */
.nav-link {
  position: relative;
}

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

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

/* Mobile Navigation Enhancements */
.mobile-nav-link {
  position: relative;
  overflow: hidden;
}

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

.mobile-nav-link:hover::before {
  left: 100%;
}/* F
loating Label Effect */
.form-group {
  position: relative;
}

.form-group.focused .form-label {
  transform: translateY(-8px) scale(0.9);
  color: var(--primary-blue);
}

.form-label {
  transition: all 0.3s ease;
  transform-origin: left top;
}

/* Enhanced Header Shadow on Scroll */
.header {
  transition: box-shadow 0.3s ease;
}

/* Smooth Animations for All Interactive Elements */
* {
  scroll-behavior: smooth;
}

/* Enhanced Focus Styles for Better Accessibility */
.btn:focus,
.form-input:focus,
.form-textarea:focus,
.nav-link:focus,
.mobile-nav-link:focus,
.menu-toggle:focus,
.logo-link:focus,
.footer-link:focus {
  outline: 3px solid var(--primary-blue);
  outline-offset: 2px;
  box-shadow: 0 0 0 1px var(--white), 0 0 0 4px var(--primary-blue);
}

/* Focus visible for better keyboard navigation */
.btn:focus-visible,
.form-input:focus-visible,
.form-textarea:focus-visible,
.nav-link:focus-visible,
.mobile-nav-link:focus-visible,
.menu-toggle:focus-visible,
.logo-link:focus-visible,
.footer-link:focus-visible {
  outline: 3px solid var(--primary-blue);
  outline-offset: 2px;
}

/* Remove focus outline for mouse users */
.btn:focus:not(:focus-visible),
.nav-link:focus:not(:focus-visible),
.mobile-nav-link:focus:not(:focus-visible),
.logo-link:focus:not(:focus-visible) {
  outline: none;
}

/* Privacy Policy Page Styles - Simplified */
.privacy-content {
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

.privacy-simple {
  background: var(--white);
  padding: 3rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  text-align: center;
}

.privacy-simple .lead {
  font-size: 1.25rem;
  color: var(--dark-gray);
  margin-bottom: 2rem;
  font-weight: 500;
}

.privacy-section {
  margin-bottom: 2rem;
  text-align: left;
}

.privacy-section:last-of-type {
  margin-bottom: 1rem;
  text-align: center;
}

.privacy-section h2 {
  color: var(--primary-blue);
  font-size: 1.25rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.privacy-section p {
  margin-bottom: 1rem;
  color: var(--primary-gray);
  font-size: 1rem;
}

.privacy-section ul {
  margin: 0 0 1rem 1.5rem;
  padding-left: 0;
}

.privacy-section li {
  margin-bottom: 0.5rem;
  color: var(--primary-gray);
  line-height: 1.6;
}

.privacy-section a {
  color: var(--primary-blue);
  text-decoration: underline;
  font-weight: 500;
}

.privacy-section a:hover {
  color: #0052a3;
  text-decoration: none;
}

.privacy-footer {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.privacy-footer p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--primary-gray);
  font-style: italic;
}

/* Privacy Policy Mobile Styles */
@media (max-width: 768px) {
  .privacy-simple {
    padding: 2rem 1.5rem;
    margin: 0 1rem;
  }
  
  .privacy-simple .lead {
    font-size: 1.125rem;
  }
  
  .privacy-section h2 {
    font-size: 1.125rem;
  }
  
  .privacy-section ul {
    margin-left: 1rem;
  }
}

@media (max-width: 480px) {
  .privacy-simple {
    padding: 1.5rem 1rem;
  }
  
  .privacy-simple .lead {
    font-size: 1rem;
  }
  
  .privacy-section p,
  .privacy-section li {
    font-size: 0.95rem;
  }
}sible),
.footer-link:focus:not(:focus-visible) {
  outline: none;
  box-shadow: none;
}

/* Skip to Content Link for Accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-blue);
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 1000;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 6px;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .ripple {
    display: none;
  }
}