/* =======================================================
*
* 	Professional BlackSalt Theme
*	Enhanced professional styling for BlackSalt company website
*
* ======================================================= */

/* Root Variables for Consistent Color Scheme */
:root {
  --primary-color: #2c3e50;
  --primary-dark: #1a252f;
  --accent-color: #3498db;
  --accent-hover: #2980b9;
  --secondary-color: #34495e;
  --text-primary: #2c3e50;
  --text-secondary: #7f8c8d;
  --text-light: #ecf0f1;
  --background-light: #f8f9fa;
  --background-white: #ffffff;
  --border-color: #e9ecef;
  --shadow-light: rgba(0, 0, 0, 0.1);
  --shadow-medium: rgba(0, 0, 0, 0.15);
  --shadow-strong: rgba(44, 62, 80, 0.2);
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

/* Enhanced Typography */
body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem 0;
}

h1 {
  font-size: 3.5rem;
  font-weight: 800;
}

h2 {
  font-size: 2.5rem;
  font-weight: 700;
}

h3 {
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-secondary);
}

p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* Professional Navigation */
#fh5co-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2px 20px var(--shadow-light);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
  z-index: 1000;
}

#fh5co-header.navbar-fixed-top {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.navbar-brand {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--primary-color) !important;
  letter-spacing: -0.02em;
}

.nav-link {
  font-weight: 500;
  color: var(--text-primary) !important;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  padding: 0.75rem 1rem !important;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--accent-color) !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 80%;
}

/* Mobile Navigation Improvements */
@media (max-width: 992px) {
  /* Fix header overlapping hero title on mobile */
  #fh5co-home {
    padding-top: 80px; /* Add padding to account for mobile header height */
  }
  
  /* Adjust text wrap height to compensate for padding */
  #fh5co-home .text-wrap {
    height: calc(900px - 80px);
  }
  
  .navbar-collapse {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 10px;
    margin-top: 1rem;
    box-shadow: 0 10px 30px var(--shadow-medium);
    padding: 1rem;
  }
  
  .nav-link {
    padding: 1rem 1.5rem !important;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
    font-size: 1rem;
  }
  
  .nav-link:last-child {
    border-bottom: none;
  }
  
  .nav-link::after {
    display: none;
  }
  
  .navbar-nav .dropdown-menu {
    border: none;
    box-shadow: none;
    background: transparent;
    margin: 0;
    padding: 0;
  }
  
  .dropdown-item {
    padding: 0.75rem 1.5rem;
    text-align: center;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
  }
  
  .dropdown-item:last-child {
    border-bottom: none;
  }
}

/* Professional Hero Section */
#fh5co-home {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--gradient-primary);
  overflow: hidden;
}

#fh5co-home::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(44, 62, 80, 0.8) 0%, rgba(52, 152, 219, 0.6) 100%);
  z-index: 1;
}

#fh5co-home .container {
  position: relative;
  z-index: 2;
}

.text-inner h1 {
  color: var(--text-light);
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 2rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 300;
  margin-bottom: 3rem;
  line-height: 1.6;
}

/* Professional Buttons */
.btn-primary {
  background: var(--accent-color);
  border: none;
  border-radius: 50px;
  padding: 1rem 2.5rem;
  font-weight: 600;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(52, 152, 219, 0.6);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--accent-color);
  color: var(--accent-color);
  border-radius: 50px;
  padding: 1rem 2.5rem;
  font-weight: 600;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: var(--accent-color);
  color: white;
  transform: translateY(-2px);
}

/* Professional Cards */
.fh5co-block {
  border-radius: 15px;
  box-shadow: 0 10px 30px var(--shadow-light);
  transition: all 0.3s ease;
  background: var(--background-white);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.fh5co-block:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px var(--shadow-medium);
}

/* Professional Sections */
.section-padding {
  padding: 100px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 80px;
}

.section-title h2 {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.section-title p {
  font-size: 1.3rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Technologies Section */
#fh5co-techs {
  background: var(--background-white);
  padding: 100px 0;
}

.fh5co-tech {
  background: var(--background-white);
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 5px 20px var(--shadow-light);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
  margin-bottom: 2rem;
}

.fh5co-tech:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px var(--shadow-medium);
}

.fh5co-tech img {
  max-height: 80px;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.fh5co-tech:hover img {
  transform: scale(1.1);
}

/* Enhanced Services Section */
#fh5co-services {
  padding: 120px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f1f3f6 100%);
  position: relative;
  overflow: hidden;
}

#fh5co-services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23f0f2f5' fill-opacity='0.4'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
  opacity: 0.3;
  pointer-events: none;
}

.service-item {
  background: var(--background-white);
  border-radius: 20px;
  padding: 3.5rem 2.5rem;
  text-align: center;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08), 
              0 5px 15px rgba(0, 0, 0, 0.04);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 2px solid transparent;
  height: 100%;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.service-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 30%, #f093fb 70%, #f5576c 100%);
  transform: scaleX(0);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border-radius: 20px 20px 0 0;
}

.service-item::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  right: -50%;
  bottom: -50%;
  background: radial-gradient(circle, rgba(102, 126, 234, 0.05) 0%, transparent 70%);
  transform: scale(0);
  transition: transform 0.6s ease;
  z-index: -1;
}

.service-item:hover::before {
  transform: scaleX(1);
}

.service-item:hover::after {
  transform: scale(1);
}

.service-item:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15), 
              0 15px 35px rgba(102, 126, 234, 0.1);
  border-color: rgba(102, 126, 234, 0.2);
}

#fh5co-services h3 {
  font-size: 24px;
  color: grey;
}

.service-item h3 {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 1.75rem;
  font-weight: 700;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.4s ease;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

.service-item:hover h3 {
  color: var(--primary-color);
  transform: translateY(-2px);
  text-shadow: 0 2px 4px rgba(44, 62, 80, 0.1);
}

/* Enhanced focus effect - when one card is hovered, others become more subtle */
.services-grid:hover .service-item:not(:hover) h3 {
  color: #bbb;
  opacity: 0.7;
}

.services-grid:hover .service-item:hover h3 {
  color: var(--accent-color);
  text-shadow: 0 2px 6px rgba(52, 152, 219, 0.3);
}

.service-item p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
  font-weight: 400;
}

/* Better desktop layout for services */
@media (min-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1400px;
    gap: 2.5rem;
  }
}

/* Enhanced About Section */
#fh5co-about {
  background: var(--background-light);
  padding: 100px 0;
}

.team-member {
  background: var(--background-white);
  border-radius: 20px;
  padding: 3rem 2.5rem;
  text-align: center;
  box-shadow: 0 10px 30px var(--shadow-light);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
  height: 100%;
  display: flex;
  flex-direction: column;
  max-width: 400px;
  margin: 0 auto;
}

.team-member:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px var(--shadow-medium);
}

.team-photo {
  border-radius: 50%;
  width: 180px;
  height: 180px;
  object-fit: cover;
  margin: 0 auto 2rem auto;
  border: 5px solid var(--accent-color);
  transition: all 0.3s ease;
}

.team-member:hover .team-photo {
  border-color: var(--accent-hover);
  transform: scale(1.05);
}

.team-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.team-info h4 {
  color: var(--primary-color);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.team-position {
  color: var(--accent-color);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 1.5rem;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.team-description {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.team-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: auto;
}

.team-social a {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-color);
  color: white;
  border-radius: 50%;
  transition: all 0.3s ease;
  text-decoration: none;
  font-size: 1.2rem;
}

.team-social a:hover {
  background: var(--accent-hover);
  transform: translateY(-3px);
  color: white;
  box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

/* Mobile improvements for team section */
@media (max-width: 768px) {
  .team-member {
    padding: 2rem 1.5rem;
    max-width: 350px;
  }
  
  .team-photo {
    width: 150px;
    height: 150px;
    margin-bottom: 1.5rem;
  }
  
  .team-info h4 {
    font-size: 1.3rem;
  }
  
  .team-position {
    font-size: 0.9rem;
  }
  
  .team-description {
    font-size: 1rem;
  }
  
  .team-social a {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }
}

@media (max-width: 576px) {
  .team-member {
    padding: 2rem 1rem;
    margin-bottom: 2rem;
  }
  
  .team-photo {
    width: 120px;
    height: 120px;
  }
  
  .team-social {
    gap: 0.75rem;
  }
  
  .team-social a {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

/* Stats/Counters Section */
#fh5co-counters {
  background: var(--primary-color);
  color: var(--text-light);
  padding: 100px 0;
  position: relative;
}

.counter-item {
  text-align: center;
  padding: 2rem;
}

.counter-item i {
  font-size: 3rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.counter-item .counter {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-light);
  display: block;
  margin-bottom: 0.5rem;
}

/* Contact Section */
#fh5co-contact {
  background: var(--background-light);
  padding: 100px 0;
}

.contact-form {
  background: var(--background-white);
  border-radius: 15px;
  padding: 3rem;
  box-shadow: 0 10px 30px var(--shadow-light);
  border: 1px solid var(--border-color);
}

.form-control {
  border-radius: 10px;
  border: 2px solid var(--border-color);
  padding: 1rem;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

/* Footer */
#footer {
  background: var(--primary-dark);
  color: var(--text-light);
  padding: 60px 0 20px 0;
}

#footer a {
  color: var(--text-light);
  transition: all 0.3s ease;
}

#footer a:hover {
  color: var(--accent-color);
}

.social-links a {
  display: inline-block;
  width: 50px;
  height: 50px;
  line-height: 50px;
  text-align: center;
  border-radius: 50%;
  background: var(--accent-color);
  color: var(--text-light);
  margin: 0 0.5rem;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--accent-hover);
  transform: translateY(-3px);
}

/* Animations and Transitions */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Enhanced Mobile Responsive Design */

/* Large tablets and small laptops */
@media (max-width: 1200px) {
  .text-inner h1 {
    font-size: 3rem;
  }
  
  .hero-subtitle {
    font-size: 1.3rem;
  }
  
  .fh5co-tech-container {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
  }
  
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
  }
}

/* Tablets */
@media (max-width: 992px) {
  .section-padding {
    padding: 80px 0;
  }
  
  .text-inner h1 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
  }
  
  .hero-stats {
    margin-top: 3rem;
  }
  
  .stat-item {
    display: inline-block;
    margin: 0 1rem 1rem 0;
    text-align: center;
  }
  
  .stat-number {
    font-size: 2.2rem;
  }
  
  .stat-label {
    font-size: 0.9rem;
  }
  
  .section-title h2 {
    font-size: 2.2rem;
  }
  
  .section-title p {
    font-size: 1.1rem;
  }
  
  .fh5co-tech-container {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
  }
  
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: none;
  }
  
  .contact-form {
    margin-bottom: 3rem;
  }
}

/* Mobile landscape */
@media (max-width: 768px) {
  /* Ensure title is not hidden by mobile header */
  #fh5co-home {
    padding-top: 90px; /* Increase padding for smaller screens */
  }
  
  #fh5co-home .text-wrap {
    height: calc(900px - 90px);
  }
  
  .section-padding {
    padding: 60px 0;
  }
  
  .text-inner h1 {
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 1rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.5;
  }
  
  .section-title h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }
  
  .section-title p {
    font-size: 1rem;
    margin-bottom: 3rem;
  }
  
  .hero-stats {
    margin-top: 2rem;
    padding: 1.5rem;
  }
  
  .stat-item {
    display: block;
    margin: 0 0 1.5rem 0;
    text-align: center;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .fh5co-tech-container,
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: none;
  }
  
  .fh5co-tech {
    text-align: center;
    padding: 1.5rem;
  }
  
  .fh5co-tech img {
    max-height: 60px;
  }
  
  .service-item {
    padding: 2rem 1.5rem;
    text-align: center;
  }
  
  .service-icon i {
    font-size: 3rem;
  }
  
  .contact-form {
    padding: 2rem 1.5rem;
  }
  
  .contact-info {
    padding: 2rem 1.5rem;
    margin-top: 2rem;
  }
  
  .social-links {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .social-links a {
    margin: 0.5rem;
  }
}

/* Mobile portrait */
@media (max-width: 576px) {
  /* Extra padding for very small screens to ensure title visibility */
  #fh5co-home {
    padding-top: 100px;
  }
  
  #fh5co-home .text-wrap {
    height: calc(900px - 100px);
  }
  
  body {
    font-size: 15px;
  }
  
  .section-padding {
    padding: 50px 0;
  }
  
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }
  
  .text-inner h1 {
    font-size: 1.8rem;
    line-height: 1.3;
    margin-bottom: 1rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    display: block;
    width: 100%;
    text-align: center;
  }
  
  .btn-secondary {
    margin-top: 0.5rem;
  }
  
  .hero-stats {
    padding: 1rem;
    margin-top: 2rem;
  }
  
  .stat-item {
    margin-bottom: 1rem;
  }
  
  .stat-number {
    font-size: 1.8rem;
  }
  
  .stat-label {
    font-size: 0.85rem;
  }
  
  .section-title {
    margin-bottom: 50px;
  }
  
  .section-title h2 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
  }
  
  .section-title p {
    font-size: 0.95rem;
  }
  
  .fh5co-tech,
  .service-item {
    padding: 1.5rem 1rem;
  }
  
  .fh5co-tech img {
    max-height: 50px;
  }
  
  .tech-content h4,
  .service-item h3 {
    font-size: 1.1rem;
  }
  
  .tech-content p,
  .service-item p {
    font-size: 0.9rem;
  }
  
  .contact-form,
  .contact-info {
    padding: 1.5rem 1rem;
  }
  
  .form-group {
    margin-bottom: 1.5rem;
  }
  
  .form-control {
    padding: 0.75rem;
    font-size: 1rem;
  }
  
  .contact-item {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
  }
  
  .contact-item i {
    font-size: 1.2rem;
  }
  
  .contact-text {
    font-size: 0.9rem;
  }
  
  .social-links a {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .navbar-brand {
    font-size: 1.2rem;
  }
  
  .nav-link {
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem !important;
  }
}

/* Extra small devices */
@media (max-width: 480px) {
  .text-inner h1 {
    font-size: 1.6rem;
  }
  
  .hero-subtitle {
    font-size: 0.95rem;
  }
  
  .section-title h2 {
    font-size: 1.4rem;
  }
  
  .hero-stats {
    padding: 0.75rem;
  }
  
  .stat-number {
    font-size: 1.6rem;
  }
  
  .stat-label {
    font-size: 0.8rem;
  }
  
  .btn-lg {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
}

/* Mobile-specific improvements */
@media (max-width: 768px) {
  /* Fix intro blocks layout */
  .fh5co-block .fh5co-text {
    padding: 2rem 1.5rem;
  }
  
  .fh5co-intro-icon {
    font-size: 2.5rem !important;
    margin-bottom: 1rem;
  }
  
  /* Improve hero section spacing */
  #fh5co-home {
    min-height: 70vh;
    display: flex;
    align-items: center;
  }
  
  .text-wrap {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
  
  /* Better mobile typography */
  h2 {
    font-size: 1.75rem;
    line-height: 1.3;
  }
  
  h3 {
    font-size: 1.4rem;
    line-height: 1.4;
  }
  
  p {
    line-height: 1.6;
  }
  
  /* Improved mobile spacing */
  .row {
    margin-left: -10px;
    margin-right: -10px;
  }
  
  .row > * {
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* Touch-friendly improvements */
@media (max-width: 576px) {
  /* Minimum touch target size */
  .btn, .nav-link, .social-links a, .dropdown-item {
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Better mobile menu */
  .navbar-toggler {
    padding: 0.5rem;
    font-size: 1.2rem;
    border: 2px solid var(--accent-color);
    border-radius: 8px;
  }
  
  .navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.25);
  }
  
  /* Mobile form improvements */
  .form-control {
    min-height: 50px;
    border-radius: 8px;
  }
  
  textarea.form-control {
    min-height: 120px;
  }
  
  /* Improved mobile cards */
  .professional-card {
    margin-bottom: 1.5rem;
    border-radius: 12px;
  }
  
  /* Better mobile hero layout */
  .hero-stats {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
  }
  
  .stat-item {
    padding: 1rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 1rem;
  }
  
  /* Mobile-first intro section */
  .fh5co-block {
    background: none !important;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 2rem;
  }
  
  .fh5co-block .overlay-darker,
  .fh5co-block .overlay {
    display: none;
  }
}

/* Mobile landscape specific fixes */
@media (max-width: 768px) and (orientation: landscape) {
  #fh5co-home {
    min-height: 60vh;
  }
  
  .hero-stats {
    margin-top: 1rem;
  }
  
  .stat-item {
    display: inline-block;
    margin: 0 1rem 0.5rem 0;
    width: auto;
  }
  
  .section-padding {
    padding: 40px 0;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .nav-link::after {
    transition: none;
  }
  
  .professional-card:hover {
    transform: none;
  }
}

/* High contrast support */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #000000;
    --text-secondary: #333333;
    --border-color: #666666;
    --shadow-light: rgba(0, 0, 0, 0.3);
    --shadow-medium: rgba(0, 0, 0, 0.5);
  }
}

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

/* Remove terminal styling for more professional look */
.terminal-section {
  display: none;
}

/* Enhanced intro blocks */
.intro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.intro-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 15px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.intro-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 20px 40px var(--shadow-strong);
}

.intro-card i {
  font-size: 3rem;
  color: var(--accent-color);
  margin-bottom: 1.5rem;
}

.intro-card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.intro-card p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

/* Enhanced intro section styling */
.intro-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
  transition: all 0.3s ease;
}

.intro-link:hover,
.intro-link:focus {
  color: inherit;
  text-decoration: none;
}

.intro-icon {
  text-align: center;
  margin-bottom: 1.5rem;
}

.intro-icon i {
  font-size: 3rem;
  color: var(--accent-color);
  margin: 0 0.25rem;
}

.intro-card:hover .intro-icon i {
  color: var(--accent-hover);
  transform: scale(1.1);
}

.intro-arrow {
  text-align: center;
  margin-top: 1rem;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
}

.intro-arrow i {
  font-size: 1.5rem;
  color: var(--accent-color);
}

.intro-card:hover .intro-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Mobile improvements for intro section */
@media (max-width: 768px) {
  .intro-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .intro-icon i {
    font-size: 2.5rem;
  }
  
  .intro-arrow {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Hero Stats Enhancement */
.hero-stats {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 2rem;
  margin-top: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item {
  margin-bottom: 2rem;
}

.stat-item:last-child {
  margin-bottom: 0;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-light);
  line-height: 1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-label {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.5rem;
}

/* Enhanced intro section */
#fh5co-home .container:last-child {
  margin-top: 6rem;
}

.intro-section {
  position: relative;
  z-index: 3;
}

/* Better spacing for intro blocks */
.fh5co-block {
  margin-bottom: 2rem;
  height: 100%;
}

/* Professional color adjustments */
.fh5co-block .fh5co-text {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 2.5rem;
  border-radius: 15px;
}

.fh5co-block:hover .fh5co-text {
  background: rgba(255, 255, 255, 1);
}

/* Technology section improvements */
.fh5co-tech-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

/* Enhanced Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
  margin-top: 4rem;
  justify-content: center;
  max-width: 1300px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem;
  position: relative;
  z-index: 2;
}

/* Improved mobile responsiveness */
@media (max-width: 992px) {
  .hero-stats {
    margin-top: 3rem;
  }
  
  .stat-item {
    display: inline-block;
    margin: 0 2rem 1rem 0;
  }
  
  .stat-number {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  .text-inner h1 {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    margin-bottom: 1rem;
  }
  
  .hero-stats {
    padding: 1.5rem;
  }
  
  .stat-item {
    display: block;
    margin: 0 0 1.5rem 0;
  }
}

/* Professional animation delays */
.to-animate:nth-child(1) { animation-delay: 0.1s; }
.to-animate:nth-child(2) { animation-delay: 0.3s; }
.to-animate:nth-child(3) { animation-delay: 0.5s; }
.to-animate:nth-child(4) { animation-delay: 0.7s; }

/* Enhanced box shadows for depth */
.professional-card {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.professional-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  transform: translateY(-5px);
}

/* Enhanced Service Icons */
.service-icon {
  margin-bottom: 2.5rem;
  position: relative;
  display: inline-block;
}

.service-icon::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(244, 147, 251, 0.1) 100%);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: -1;
}

.service-item:hover .service-icon::before {
  transform: translate(-50%, -50%) scale(1);
}

.service-icon i {
  font-size: 4.5rem;
  background: linear-gradient(135deg, var(--accent-color) 0%, #764ba2 50%, #f093fb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0.5rem;
  position: relative;
  z-index: 2;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  filter: drop-shadow(0 4px 8px rgba(102, 126, 234, 0.2));
}

.service-item:hover .service-icon i {
  transform: scale(1.1) rotate(5deg);
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 50%, #667eea 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 8px 16px rgba(102, 126, 234, 0.3));
}

.service-features {
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 2px solid transparent;
  background: linear-gradient(90deg, rgba(102, 126, 234, 0.1) 0%, rgba(244, 147, 251, 0.1) 100%);
  background-clip: padding-box;
  border-image: linear-gradient(90deg, var(--accent-color), #764ba2) 1;
  border-radius: 15px;
  padding: 2rem;
  position: relative;
}

.service-features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-color) 0%, #764ba2 50%, #f093fb 100%);
  border-radius: 15px 15px 0 0;
}

.feature-item {
  color: var(--text-primary);
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
  padding: 0.5rem 0;
}

.feature-item:hover {
  transform: translateX(8px);
  color: var(--accent-color);
}

.feature-item::before {
  content: "✓";
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--accent-color) 0%, #764ba2 100%);
  border-radius: 50%;
  margin-right: 1rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.9rem;
  font-weight: bold;
  box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
  transition: all 0.3s ease;
}

.feature-item:hover::before {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  transform: scale(1.1);
  box-shadow: 0 6px 12px rgba(244, 147, 251, 0.4);
}

/* Enhanced technology cards */
.fh5co-tech a {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.fh5co-tech:hover a {
  color: inherit;
}

.tech-content {
  padding: 1.5rem 0 0.5rem 0;
}

.tech-content h4 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.75rem;
}

.tech-content p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.tech-link {
  color: var(--accent-color);
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.fh5co-tech:hover .tech-link {
  color: var(--accent-hover);
  transform: translateX(5px);
}

.fh5co-tech-container {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Enhanced contact section styling */
.contact-info {
  background: var(--background-white);
  border-radius: 15px;
  padding: 2.5rem;
  height: 100%;
  box-shadow: 0 10px 30px var(--shadow-light);
  border: 1px solid var(--border-color);
}

.contact-info h3 {
  color: var(--primary-color);
  margin-bottom: 2rem;
  font-size: 1.5rem;
}

.contact-details {
  margin-bottom: 2.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.contact-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.contact-item i {
  color: var(--accent-color);
  font-size: 1.3rem;
  margin-right: 1rem;
  margin-top: 0.25rem;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.contact-text {
  color: var(--text-secondary);
  line-height: 1.6;
}

.contact-text a {
  color: var(--accent-color);
  text-decoration: none;
}

.contact-text a:hover {
  color: var(--accent-hover);
}

.contact-cta {
  padding-top: 2rem;
  border-top: 2px solid var(--border-color);
}

.contact-cta h4 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-color);
  color: white;
  border-radius: 50%;
  transition: all 0.3s ease;
  text-decoration: none;
  font-size: 1.2rem;
  line-height: 1;
}

.social-links a i {
  width: auto;
  height: auto;
  display: block;
}

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

/* Form labels */
.form-group label {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.95rem;
}

/* Select styling */
select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1em;
}

/* ========================================
   Enhanced Mobile Responsiveness for Services
   ======================================== */

@media (max-width: 992px) {
  #fh5co-services {
    padding: 80px 0;
  }
  
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
  }
  
  .service-item {
    padding: 3rem 2rem;
  }
  
  .service-item h3 {
    font-size: 1.6rem;
  }
  
  .service-icon i {
    font-size: 4rem;
  }
}

@media (max-width: 768px) {
  #fh5co-services {
    padding: 60px 0;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: none;
    padding: 0 0.5rem;
  }
  
  .service-item {
    padding: 2.5rem 2rem;
    text-align: center;
    border-radius: 16px;
  }
  
  .service-item h3 {
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
  }
  
  .service-icon i {
    font-size: 3.5rem;
  }
  
  .service-icon::before {
    width: 100px;
    height: 100px;
  }
  
  .service-features {
    padding: 1.5rem;
    margin-top: 2rem;
    border-radius: 12px;
  }
  
  .feature-item {
    font-size: 1rem;
    margin-bottom: 0.75rem;
  }
  
  .feature-item::before {
    width: 24px;
    height: 24px;
    font-size: 0.8rem;
  }
}

@media (max-width: 576px) {
  .service-item {
    padding: 2rem 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .service-item h3 {
    font-size: 1.3rem;
    letter-spacing: 0.3px;
  }
  
  .service-icon i {
    font-size: 3rem;
  }
  
  .service-icon::before {
    width: 90px;
    height: 90px;
  }
  
  .service-features {
    padding: 1.25rem;
  }
  
  .feature-item {
    font-size: 0.95rem;
  }
}