/*--------------------------------------------------------------
# Professional UI Improvements
--------------------------------------------------------------*/

/* Enhanced Typography */
body {
  font-family: 'Inter', 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #2c3e50;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', 'Raleway', sans-serif;
  font-weight: 600;
  color: #1a202c;
  margin-bottom: 1rem;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Enhanced Header */
#header {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  padding: 15px 0;
}

#header .logo img {
  transition: transform 0.3s ease;
  max-height: 60px;
  width: auto;
}

#header .logo:hover img {
  transform: scale(1.05);
}

/* Better navbar alignment */
#header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
}

/* Professional Navigation */
.navbar ul {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar ul li {
  margin: 0 5px;
}

.navbar ul li a {
  font-weight: 500;
  letter-spacing: 0.3px;
  position: relative;
  padding: 10px 18px;
  transition: all 0.3s ease;
  font-size: 15px;
  text-transform: uppercase;
  color: #2c3e50;
}

.navbar ul li a::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 50%;
  width: 0;
  height: 2px;
  background: #5697d0;
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.navbar ul li a:hover,
.navbar ul li a.active {
  color: #5697d0;
}

.navbar ul li a:hover::after,
.navbar ul li a.active::after {
  width: 60%;
}

/* Enhanced Hero Section */
#hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
}

#hero .carousel-item {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#hero .carousel-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.5));
  z-index: 1;
}

#hero .carousel-container {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
}

#hero .container {
  text-align: center;
}

#hero h2 {
  font-size: 56px;
  font-weight: 700;
  margin-bottom: 30px;
  text-shadow: 2px 2px 15px rgba(0, 0, 0, 0.95), 0 0 30px rgba(0, 0, 0, 0.8);
  letter-spacing: -0.5px;
  color: #ffffff !important;
}

#hero h2 span {
  color: #ffffff !important;
}

#hero p {
  font-size: 20px;
  line-height: 1.8;
  font-weight: 400;
  text-shadow: 2px 2px 12px rgba(0, 0, 0, 0.95), 0 0 25px rgba(0, 0, 0, 0.8);
  margin-bottom: 40px;
  color: #ffffff !important;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

#hero p span {
  color: #ffffff !important;
}

#hero p em {
  color: #ffffff !important;
}

/* Professional Button */
.btn-get-started {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.5px;
  padding: 14px 40px;
  border-radius: 50px;
  background: linear-gradient(135deg, #5697d0, #428bca);
  color: #fff;
  border: 2px solid transparent;
  transition: all 0.4s ease;
  box-shadow: 0 8px 25px rgba(86, 151, 208, 0.4);
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}

.btn-get-started::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn-get-started:hover::before {
  left: 100%;
}

.btn-get-started:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(86, 151, 208, 0.5);
  background: linear-gradient(135deg, #428bca, #357abd);
  border-color: #fff;
}

/* Enhanced Section Titles */
.section-title {
  padding-bottom: 40px;
}

.section-title h2 {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  color: #5697d0;
  letter-spacing: 2px;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
  padding-bottom: 8px;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, #5697d0, transparent);
}

.section-title h3 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #1a202c;
}

.section-title h3 span {
  color: #5697d0;
  position: relative;
}

.section-title p {
  font-size: 17px;
  color: #6c757d;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
}

/* Professional About Section */
#about {
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
  padding: 80px 0;
}

#about .section-title p {
  text-align: left;
  margin: 0 0 20px 0;
  color: #495057;
  font-size: 16px;
}

/* Enhanced Services Section */
#services {
  padding: 80px 0;
  background: #ffffff;
}

.services .icon-box {
  padding: 40px 30px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
  margin-bottom: 30px;
  transition: all 0.4s ease;
  border: 1px solid #f0f0f0;
  position: relative;
  overflow: hidden;
}

.services .icon-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: linear-gradient(180deg, #5697d0, #428bca);
  transition: height 0.4s ease;
}

.services .icon-box:hover::before {
  height: 100%;
}

.services .icon-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 45px rgba(86, 151, 208, 0.2);
}

.services .icon-box .icon {
  margin-bottom: 20px;
}

.services .icon-box .icon i {
  color: #5697d0;
  font-size: 48px;
  transition: all 0.4s ease;
}

.services .icon-box:hover .icon i {
  transform: scale(1.1) rotateY(360deg);
  color: #428bca;
}

.services .icon-box h4 {
  font-weight: 700;
  margin-bottom: 20px;
  font-size: 22px;
  color: #1a202c;
}

.services .icon-box hr {
  border: 0;
  height: 2px;
  background: linear-gradient(90deg, #5697d0, transparent);
  margin: 20px 0;
}

.services .icon-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.services .icon-box ul li {
  padding: 10px 0 10px 28px;
  position: relative;
  color: #495057;
  font-size: 15px;
  transition: all 0.3s ease;
}

.services .icon-box ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 10px;
  color: #5697d0;
  font-weight: bold;
  font-size: 18px;
}

.services .icon-box:hover ul li {
  padding-left: 32px;
  color: #2c3e50;
}

/* Enhanced Contact Section */
#contact {
  padding: 80px 0;
  background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

.contact .info {
  padding: 30px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
  margin-bottom: 30px;
  transition: all 0.3s ease;
  border-left: 4px solid #5697d0;
}

.contact .info:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 35px rgba(86, 151, 208, 0.15);
}

.contact .info i {
  font-size: 32px;
  color: #5697d0;
  margin-bottom: 15px;
  transition: all 0.3s ease;
}

.contact .info:hover i {
  transform: scale(1.1);
  color: #428bca;
}

.contact .info h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #1a202c;
}

.contact .info p {
  margin: 0;
  color: #495057;
  font-size: 15px;
}

.contact .info p a {
  color: #5697d0;
  transition: all 0.3s ease;
  font-weight: 500;
}

.contact .info p a:hover {
  color: #428bca;
  text-decoration: underline;
}

/* Professional Form Styling */
.php-email-form {
  background: #fff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
}

.php-email-form .form-group {
  margin-bottom: 25px;
}

.php-email-form label {
  font-weight: 600;
  font-size: 14px;
  color: #1a202c;
  margin-bottom: 8px;
  display: block;
}

.php-email-form input,
.php-email-form textarea {
  border-radius: 8px;
  border: 2px solid #e9ecef;
  font-size: 15px;
  padding: 12px 18px;
  transition: all 0.3s ease;
}

.php-email-form input:focus,
.php-email-form textarea:focus {
  border-color: #5697d0;
  box-shadow: 0 0 0 0.2rem rgba(86, 151, 208, 0.15);
  outline: none;
}

.php-email-form button[type="submit"] {
  background: linear-gradient(135deg, #5697d0, #428bca);
  border: 2px solid transparent;
  padding: 14px 45px;
  color: #fff;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.4s ease;
  box-shadow: 0 8px 25px rgba(86, 151, 208, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 14px;
}

.php-email-form button[type="submit"]:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(86, 151, 208, 0.4);
  background: linear-gradient(135deg, #428bca, #357abd);
}

/* Enhanced Footer */
#footer {
  background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
  color: #e2e8f0;
  padding-top: 60px;
}

#footer .footer-top {
  padding-bottom: 40px;
}

#footer h4 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 25px;
}

#footer h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, #5697d0, transparent);
  border-radius: 2px;
}

#footer .footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#footer .footer-links ul li {
  padding: 8px 0;
  display: flex;
  align-items: center;
}

#footer .footer-links ul li i {
  color: #5697d0;
  margin-right: 8px;
  font-size: 12px;
  transition: all 0.3s ease;
}

#footer .footer-links ul li a {
  color: #cbd5e0;
  transition: all 0.3s ease;
  font-size: 15px;
}

#footer .footer-links ul li:hover i {
  transform: translateX(5px);
}

#footer .footer-links ul li:hover a {
  color: #5697d0;
  padding-left: 5px;
}

#footer .footer-contact p {
  line-height: 2;
  margin-bottom: 8px;
  color: #cbd5e0;
}

#footer .footer-contact p strong {
  color: #fff;
  font-weight: 600;
}

#footer .footer-contact p a {
  color: #5697d0;
  transition: all 0.3s ease;
}

#footer .footer-contact p a:hover {
  color: #6aa3d5;
  text-decoration: underline;
}

#footer .social-links {
  margin-top: 25px;
}

#footer .social-links a {
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(86, 151, 208, 0.1);
  color: #5697d0;
  margin-right: 12px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  transition: all 0.4s ease;
  border: 2px solid transparent;
}

#footer .social-links a:hover {
  background: #5697d0;
  color: #fff;
  transform: translateY(-5px) rotate(360deg);
  box-shadow: 0 8px 20px rgba(86, 151, 208, 0.4);
}

#footer .copyright {
  padding: 25px 0;
  color: #a0aec0;
  font-size: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#footer .copyright strong {
  color: #5697d0;
  font-weight: 600;
}

#footer .copyright small {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: #718096;
}

#footer .footer-legal-links {
  padding: 25px 0;
  text-align: right;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#footer .footer-legal-links a {
  color: #a0aec0;
  font-size: 14px;
  transition: all 0.3s ease;
  text-decoration: none;
}

#footer .footer-legal-links a:hover {
  color: #5697d0;
  text-decoration: underline;
}

#footer .footer-legal-links .separator {
  color: #4a5568;
  margin: 0 12px;
}

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

.modal-header {
  background: linear-gradient(135deg, #5697d0, #428bca);
  color: #fff;
  border-radius: 12px 12px 0 0;
  padding: 20px 25px;
  border-bottom: none;
}

.modal-header .modal-title {
  font-weight: 600;
  font-size: 20px;
}

.modal-header .btn-close {
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

.modal-header .btn-close:hover {
  opacity: 1;
}

.modal-body {
  padding: 30px;
  color: #2c3e50;
}

.modal-body h6 {
  color: #1a202c;
  font-weight: 600;
  margin-top: 20px;
  margin-bottom: 12px;
  font-size: 16px;
}

.modal-body h6:first-child {
  margin-top: 0;
}

.modal-body p {
  line-height: 1.7;
  margin-bottom: 15px;
  color: #495057;
}

.modal-body ul {
  margin-bottom: 15px;
  padding-left: 25px;
}

.modal-body ul li {
  margin-bottom: 8px;
  line-height: 1.6;
  color: #495057;
}

.modal-body a {
  color: #5697d0;
  text-decoration: none;
  transition: all 0.3s ease;
}

.modal-body a:hover {
  color: #428bca;
  text-decoration: underline;
}

.modal-footer {
  padding: 15px 25px;
  border-top: 1px solid #e9ecef;
}

.modal-footer .btn-secondary {
  background: #6c757d;
  border: none;
  padding: 10px 25px;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.modal-footer .btn-secondary:hover {
  background: #5a6268;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(108, 117, 125, 0.3);
}

/* Responsive Footer Legal Links */
@media (max-width: 768px) {
  #footer .copyright,
  #footer .footer-legal-links {
    text-align: center;
    padding: 15px 0;
  }

  #footer .footer-legal-links .separator {
    margin: 0 8px;
  }
}

/* Carousel Improvements */
.carousel-control-prev,
.carousel-control-next {
  width: 60px;
  height: 60px;
  background: rgba(86, 151, 208, 0.8);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  transition: all 0.3s ease;
  opacity: 0.7;
}

.carousel-control-prev {
  left: 30px;
}

.carousel-control-next {
  right: 30px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background: rgba(86, 151, 208, 1);
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
}

.carousel-indicators li {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.carousel-indicators li.active {
  background: #5697d0;
  transform: scale(1.3);
}

/* Responsive Improvements */
@media (max-width: 992px) {
  #header .logo img {
    max-height: 50px;
  }

  .navbar ul li a {
    font-size: 14px;
    padding: 8px 12px;
  }

  #hero h2 {
    font-size: 42px;
  }

  #hero p {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  #header .logo img {
    max-height: 45px;
  }

  #hero {
    height: 80vh;
    min-height: 500px;
  }

  #hero .carousel-item {
    height: 80vh;
    min-height: 500px;
  }

  #hero h2 {
    font-size: 32px;
  }

  #hero p {
    font-size: 16px;
    padding: 0 20px;
  }

  .section-title h3 {
    font-size: 28px;
  }

  .services .icon-box {
    margin-bottom: 20px;
  }

  .php-email-form {
    padding: 25px;
  }

  #header .container {
    padding: 0 15px;
  }
}

/* Loading States */
.loading {
  text-align: center;
  padding: 15px;
  color: #5697d0;
  font-weight: 600;
}

.error-message {
  text-align: center;
  padding: 15px;
  background: #fee;
  color: #c33;
  border-radius: 8px;
  margin-bottom: 15px;
}

.sent-message {
  text-align: center;
  padding: 15px;
  background: #e8f5e9;
  color: #2e7d32;
  border-radius: 8px;
  margin-bottom: 15px;
  font-weight: 600;
}

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

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

.fadeInUp {
  animation-name: fadeInUp;
}

.fadeInDown {
  animation-name: fadeInDown;
}

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

/* Accessibility Improvements */
:focus-visible {
  outline: 3px solid #5697d0;
  outline-offset: 2px;
}

/* Selection Color */
::selection {
  background: #5697d0;
  color: #fff;
}

::-moz-selection {
  background: #5697d0;
  color: #fff;
}

/* PRR Logo in Footer */
#footer .prr-logo {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#footer .prr-logo a {
  display: inline-block;
  transition: all 0.3s ease;
  opacity: 0.9;
}

#footer .prr-logo a:hover {
  opacity: 1;
  transform: translateY(-5px);
}

#footer .prr-logo img {
  max-width: 300px;
  height: auto;
  transition: all 0.3s ease;
  filter: brightness(1.1);
}

#footer .prr-logo a:hover img {
  filter: brightness(1.3);
  box-shadow: 0 5px 20px rgba(86, 151, 208, 0.3);
}
