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

:root {
  --primary-color: #0a4275;
  --primary-dark: #08335c;
  --secondary-color: #f3dcc3;
  --accent-color: #28a745;
  --dark-color: #1a1a1a;
  --light-color: #f8f9fa;
  --error-color: #dc3545;
  --success-color: #0f5132;
  --transition: all 0.3s ease;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: var(--light-color);
  padding-top: 70px;
}

/* Navigation */
.navbar {
  padding: 5px 0;
  transition: var(--transition);
}

.navbar-brand {
  font-weight: 700;
  font-size: 35px;
  color: #25343F !important;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.nav-link {
  color: #25343F !important;
  font-weight: 500;
  margin: 0 10px;
  transition: color 0.3s ease;
  padding: .2rem 1rem;
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active,
.navbar-light .navbar-nav .active.nav-link,
.navbar-light .navbar-nav .nav-link.active,
.navbar-light .navbar-nav .nav-link.show,
.navbar-light .navbar-nav .show.nav-link {
  color: white !important;
}

.navbar-toggler {
  background: #fff;
  padding: 1px 5px;
  font-size: 15px;
  line-height: 0.3;
}

.navbar-nav {
  text-align: center;
}

/* Hero Section */
.hero {
  padding: 120px 0 80px;
  background: linear-gradient(135deg, var(--primary-color) 0%, #EDF2F7 100%);
  color: white;
  text-align: center;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 30px;
  opacity: 0.9;
}

.hero-buttons {
  margin-top: 40px;
}

/* Carousel Styles - Consolidated */
.carousel-item {
  height: 520px;
  min-height: 300px;
  background: no-repeat center center scroll;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  opacity: 0.8;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-caption {
  bottom: 270px;
  background: rgba(0, 0, 0, 0.45);
  padding: 1.5rem;
  border-radius: 10px;
}

.carousel-caption h5 {
  font-size: 45px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 25px;
}

.carousel-caption p {
  width: 75%;
  margin: auto;
  font-size: 18px;
  line-height: 1.9;
}

/* Modal Styles */
.modal-content {
  border-radius: 15px;
  border: none;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
  background-color: #DD6B20;
  color: white;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px 15px 0 0 !important;
}

.modal-body {
  padding: 30px;
}

.btn-close-white {
  filter: invert(1) grayscale(100%) brightness(200%);
}

/* Form Styles */
.php-email-form .loading {
  padding: 25px;
  background: rgba(10, 66, 117, 0.05);
  border-radius: 8px;
  margin: 20px 0;
}

.php-email-form .loading p {
  margin-top: 15px;
  margin-bottom: 0;
  color: var(--primary-color);
  font-weight: 500;
}

.php-email-form .sent-message,
.php-email-form .error-message {
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 25px;
  animation: fadeIn 0.5s ease;
}

.php-email-form .sent-message {
  background: #d1e7dd;
  color: var(--success-color);
  border: 1px solid #badbcc;
}

.php-email-form .error-message {
  background: #f8d7da;
  color: #842029;
  border: 1px solid #f5c2c7;
}

/* Form Controls */
.form-control,
.form-select {
  padding: 12px 15px;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(10, 66, 117, 0.15);
}

.form-label {
  font-weight: 600;
  margin-bottom: 8px;
  color: #2c3e50;
}

/* Buttons - Consolidated */
.cta-button {
  display: inline-block;
  padding: 14px 35px;
  background-color: var(--primary-color);
  color: white !important;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  margin: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1.1rem;
}

.cta-button:hover {
  background-color: transparent;
  border-color: var(--primary-color);
  color: var(--primary-color) !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(10, 66, 117, 0.2);
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  padding: 12px 50px;
  font-weight: 600;
  border-radius: 8px;
  transition: var(--transition);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(10, 66, 117, 0.3);
}

.btn-outline-light {
  border: 2px solid white;
  color: white;
  padding: 8px 25px;
  border-radius: 8px;
  font-weight: 500;
  transition: var(--transition);
}

.btn-outline-light:hover {
  background-color: white;
  color: var(--primary-color);
}

/* Form validation styles */
.is-invalid {
  border-color: var(--error-color) !important;
}

.is-invalid:focus {
  box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25) !important;
}

.invalid-feedback {
  display: block;
  width: 100%;
  margin-top: 0.25rem;
  font-size: 0.875em;
  color: var(--error-color);
}

/* Section Titles */
.section-title {
  position: relative;
  margin-bottom: 3rem;
  text-align: center;
  font-size: 2.5rem;
  color: var(--primary-color);
  font-weight: 700;
}

.section-title:after {
  content: '';
  position: absolute;
  width: 80px;
  height: 4px;
  background: var(--primary-color);
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
}

/* Feature Cards */
.feature-card {
  border: none;
  border-radius: 15px;
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  background: white;
  margin-bottom: 1.5rem;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.feature-card .card-body {
  padding: 2rem;
  text-align: center;
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.feature-card .card-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.feature-card .card-text {
  color: #666;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.feature-card .btn-outline-primary {
  border-color: var(--primary-color);
  color: var(--primary-color);
  padding: 0.5rem 1.5rem;
  border-radius: 25px;
  font-weight: 500;
  transition: var(--transition);
}

.feature-card .btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

/* Products Section */
.products-section {
  background: var(--light-color);
}

.product-card {
  background: #ffffff;
  border-radius: 15px;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  position: relative;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.product-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.product-content {
  padding: 20px;
}

.product-content h5 {
  font-weight: 600;
  margin-bottom: 10px;
}

.product-link {
  text-decoration: none;
  font-weight: 500;
  color: var(--primary-color);
  transition: 0.3s;
}

.product-link:hover {
  color: #198754;
}

.product-icon {
  position: absolute;
  top: 15px;
  right: 15px;
  background: white;
  padding: 8px;
  border-radius: 50%;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.highlight-card {
  border: 2px solid #198754;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary-color), #c77306);
  color: white;
  padding: 5rem 0;
  text-align: center;
  margin-top: 4rem;
}

.cta-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.cta-section .lead {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 3rem;
}

/* Help Section */
.help-content {
  padding-top: 120px;
  min-height: 70vh;
}

.help-section {
  margin-bottom: 3rem;
}

.help-card {
  border: 1px solid #dee2e6;
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.help-card:hover {
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transform: translateY(-5px);
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin: 1.5rem 0;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 10px;
}

.doc-list {
  list-style-type: none;
  padding-left: 0;
}

.doc-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
}

.doc-list li:last-child {
  border-bottom: none;
}

.doc-icon {
  color: var(--primary-color);
  margin-right: 10px;
}

/* Footer - Consolidated */
footer {
  margin-top: 80px;
}

footer .container.py-5 {
  padding-top: 3rem !important;
  padding-bottom: 3rem !important;
}

footer h5 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: white;
}

footer p {
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.footer-links p {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: var(--transition);
  display: inline-block;
}

.footer-links a:hover {
  color: white;
  padding-left: 5px;
}

.footer-links i {
  width: 20px;
  text-align: center;
}

.social-icons {
  display: flex;
  gap: 10px;
  margin-top: 1.5rem;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  transition: var(--transition);
  color: white;
  text-decoration: none;
}

.social-icons a:hover {
  background: white;
  color: var(--primary-color);
  transform: translateY(-3px);
}

footer .input-group {
  margin-top: 1rem;
}

footer .form-control {
  border-radius: 25px 0 0 25px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1);
  color: white;
  padding: 0.75rem 1rem;
}

footer .form-control::placeholder {
  color: rgba(255,255,255,0.6);
}

footer .btn-light {
  border-radius: 0 25px 25px 0;
  background: white;
  color: var(--primary-color);
  font-weight: 500;
  padding: 0.75rem 1.5rem;
}

footer .text-center.py-3 {
  background-color: rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* Dropdown */
.dropdown-menu {
  border-radius: 12px;
  padding: 10px 0;
}

.dropdown-item {
  padding: 10px 20px;
  transition: 0.2s ease;
}

.dropdown-item:hover {
  background-color: #f1f5f9;
  padding-left: 25px;
}

/* Link area */
.link-area {
  position: fixed;
  bottom: 20px;
  left: 20px;
  padding: 15px;
  border-radius: 40px;
  background: tomato;
}

.link-area a {
  text-decoration: none;
  color: #fff;
  font-size: 25px;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.animate__animated {
  animation-duration: 1s;
  animation-fill-mode: both;
}

.animate__fadeInUp {
  animation-name: fadeInUp;
}

.animate__delay-1s {
  animation-delay: 0.2s;
}

.animate__delay-2s {
  animation-delay: 0.4s;
}

.animate__delay-3s {
  animation-delay: 0.6s;
}

/* Responsive Design - Consolidated */
@media (max-width: 768px) {
  body {
    padding-top: 56px;
  }
  
  .navbar-brand {
    font-size: 18px;
    letter-spacing: 1px;
  }
  
  .navbar-brand img {
    height: 45px;
  }
  
  .nav-link {
    padding: 10px 0;
    font-size: 16px;
  }
  
  .carousel-item {
    height: 420px;
  }
  
  .carousel-item img {
    object-fit: cover;
  }
  
  .carousel-caption {
    display: none !important;
    bottom: 20px;
    padding: 1rem;
  }
  
  .carousel-caption-mobile {
    position: absolute;
    bottom: 20px;
    left: 15px;
    right: 15px;
    background: rgba(0,0,0,0.6);
    padding: 12px 16px;
    border-radius: 10px;
    text-align: center;
  }
  
  .carousel-caption-mobile h5 {
    font-size: 1.2rem;
    color: #fff;
    margin: 0;
    font-weight: 600;
  }
  
  .hero-content h1 {
    font-size: 2.2rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  .cta-button,
  .cta-section .btn {
    width: 100%;
    max-width: 320px;
    padding: 12px 25px;
    font-size: 1rem;
    display: block;
    margin: 10px 0;
  }
  
  .hero-buttons {
    margin-top: 30px;
  }
  
  .modal-dialog {
    margin: 10px;
  }
  
  .modal-body {
    padding: 20px;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .cta-section {
    padding: 3rem 0;
  }
  
  .cta-section h2 {
    font-size: 1.8rem;
  }
  
  .cta-section .lead {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
  
  .feature-card {
    margin-bottom: 1rem;
  }
  
  footer .row > div {
    margin-bottom: 2rem;
  }
  
  footer .social-icons {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .feature-card .card-body {
    padding: 1.5rem 1.2rem;
  }
  
  .feature-icon {
    font-size: 2rem;
  }
}


@media (max-width: 991.98px) {
  /* Fix body padding for mobile */
  body {
      padding-top: 65px !important;
  }
  
  /* Better mobile toggler button */
  .navbar-toggler {
      border: none !important;
      padding: 10px 12px !important;
      background: rgba(37, 52, 63, 0.07) !important;
      border-radius: 12px !important;
      margin: 5px 0 !important;
  }
  
  .navbar-toggler:focus,
  .navbar-toggler:active {
      box-shadow: 0 0 0 3px rgba(10,66,117,0.15) !important;
      outline: none !important;
  }
  
  /* Fix collapsed menu appearance */
  .navbar-collapse {
      background: #fff9f0 !important;
      border-radius: 20px !important;
      padding: 15px !important;
      margin-top: 15px !important;
      box-shadow: 0 8px 20px rgba(0,0,0,0.08) !important;
      border: 1px solid rgba(243,220,195,0.8) !important;
      max-height: 80vh;
      overflow-y: auto;
  }
  
  /* Better mobile nav links - LARGER TAP TARGETS */
  .navbar-nav .nav-link {
      padding: 14px 20px !important;
      margin: 3px 0 !important;
      border-radius: 40px !important;
      font-size: 1.1rem !important;
      font-weight: 600 !important;
      display: flex !important;
      align-items: center !important;
      color: #25343F !important;
  }
  
  /* Add icons to mobile nav if they don't exist */
  .navbar-nav .nav-link i {
      margin-right: 15px !important;
      width: 24px !important;
      text-align: center !important;
      color: #0a4275 !important;
      font-size: 1.2rem !important;
  }
  
  /* Active state */
  .navbar-nav .nav-link.active {
      background: #0a4275 !important;
      color: white !important;
  }
  
  .navbar-nav .nav-link.active i {
      color: white !important;
  }
  
  /* Better dropdown menu on mobile */
  .navbar-nav .dropdown-menu {
      background: rgba(255,255,255,0.9) !important;
      border: 1px solid rgba(10,66,117,0.1) !important;
      border-radius: 18px !important;
      padding: 8px 0 !important;
      margin: 5px 10px !important;
      width: auto !important;
  }
  
  .navbar-nav .dropdown-item {
      padding: 12px 25px !important;
      font-size: 1rem !important;
      border-radius: 30px !important;
      display: flex !important;
      align-items: center !important;
  }
  
  .navbar-nav .dropdown-item i {
      margin-right: 12px !important;
      width: 22px !important;
      color: #0a4275 !important;
  }
  
  .navbar-nav .dropdown-item:hover,
  .navbar-nav .dropdown-item:focus {
      background: #f3dcc3 !important;
      padding-left: 30px !important;
  }
  
  /* Hide desktop hover effects on mobile */
  .nav-link:hover:not(.active) {
      background: rgba(10, 66, 117, 0.08) !important;
  }
  
  /* Adjust brand for small screens */
  .navbar-brand {
      display: flex !important;
      align-items: center !important;
      gap: 8px !important;
  }
  
  .navbar-brand img {
      height: 45px !important;
      width: auto !important;
  }
  
  .navbar-brand {
      font-size: 1.4rem !important;
  }
}

/* Extra small devices (phones under 375px) */
@media (max-width: 374px) {
  .navbar-brand img {
      height: 38px !important;
  }
  
  .navbar-brand {
      font-size: 1.2rem !important;
  }
}