html {
  font-size: 14px;
  scroll-behavior: smooth;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin: 0;
  padding-top: 76px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

/* Navbar Styles */
#mainNav {
  background-color: rgba(33, 37, 41, 0.95) !important;
  transition: background-color 0.3s ease;
  backdrop-filter: blur(10px);
}

#mainNav.scrolled {
  background-color: rgba(33, 37, 41, 0.98) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-weight: 600;
  font-size: 1.25rem;
}

.navbar-nav .nav-link {
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: #258cfb !important;
}

.navbar-nav .nav-link.active {
  color: #258cfb !important;
  font-weight: 600;
}

/* Hero Section */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-image: url('/images/heroimage.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    margin-top: -76px;
    padding-top: 76px;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(33, 37, 41, 0.7);
}

.hero-section .container {
  position: relative;
  z-index: 1;
}

.hero-section h1 {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease;
}

.hero-section p {
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease 0.2s both;
}

.hero-section .btn {
  animation: fadeInUp 1s ease 0.4s both;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-section .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Section Styles */
section {
  padding: 80px 0;
}

.hero-section {
  padding: 0 !important;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #212529;
  margin-bottom: 1rem;
}

/* About Section */
#about {
  background-color: #ffffff;
}

/* Services Section */
#services {
  background-color: #f8f9fa;
}

.service-card {
  background: white;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e9ecef;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.service-icon img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.service-card:hover .service-icon img {
  transform: scale(1.05);
}

.service-card h3 {
  color: #212529;
  font-weight: 600;
  margin-bottom: 1rem;
}

.service-card p {
  color: #6c757d;
  line-height: 1.6;
}

/* Technologies Section */
#technologies {
  background-color: #ffffff;
}

.technology-card {
  background: white;
  border-radius: 10px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e9ecef;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 150px;
}

.technology-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-color: #258cfb;
}

.technology-icon {
  font-size: 3rem;
  color: #258cfb;
  margin-bottom: 1rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

.technology-card:hover .technology-icon {
  transform: scale(1.1);
  color: #1a6fd8;
}

.technology-name {
  font-size: 1rem;
  font-weight: 600;
  color: #212529;
  margin: 0;
  line-height: 1.4;
}

/* Contact Section */
#contact {
  background-color: #f8f9fa;
  padding-bottom: 100px !important;
  margin-bottom: 4rem;
}

.contact-form {
  background: white;
  padding: 2.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.contact-form .form-label {
  font-weight: 600;
  color: #212529;
  margin-bottom: 0.5rem;
}

.contact-form .form-control {
  border: 2px solid #e9ecef;
  border-radius: 5px;
  padding: 0.75rem;
  transition: border-color 0.3s ease;
}

.contact-form .form-control:focus {
  border-color: #258cfb;
  box-shadow: 0 0 0 0.2rem rgba(37, 140, 251, 0.25);
}

.contact-form .btn-primary {
  background-color: #258cfb;
  border-color: #258cfb;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.contact-form .btn-primary:hover {
  background-color: #1a6fd8;
  border-color: #1a6fd8;
  transform: translateY(-2px);
}

/* Footer */
.footer {
  margin-top: auto;
  padding: 2rem 0;
  width: 100%;
}

.footer a {
  color: #258cfb;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: #1a6fd8;
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-section {
    background-attachment: scroll;
    min-height: 80vh;
  }

  .hero-section h1 {
    font-size: 2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  section {
    padding: 60px 0;
  }

  .service-card,
  .technology-card {
    margin-bottom: 1.5rem;
  }

  .technology-icon {
    font-size: 2.5rem;
  }

  .technology-name {
    font-size: 0.9rem;
  }

  .contact-form {
    padding: 1.5rem;
  }

  #contact {
    padding-bottom: 80px !important;
  }

  body {
    padding-top: 56px;
  }
}

/* Smooth Scroll Offset */
html {
  scroll-padding-top: 80px;
}

/* Form Validation Styles */
.field-validation-error {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: block;
}

.input-validation-error {
  border-color: #dc3545;
}

/* Privacy Page */
.privacy-page {
  background-color: #ffffff;
  min-height: calc(100vh - 76px);
  padding-top: 2rem;
}

.privacy-content {
  line-height: 1.8;
  color: #495057;
}

.privacy-content h2 {
  color: #212529;
  margin-top: 2rem;
}

.privacy-content h3 {
  color: #343a40;
  margin-top: 1.5rem;
}

.privacy-content ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.privacy-content li {
  margin-bottom: 0.5rem;
}

.privacy-content a {
  color: #258cfb;
  text-decoration: none;
}

.privacy-content a:hover {
  text-decoration: underline;
}

.privacy-content strong {
  color: #212529;
}

/* Loading and Animation */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
