/*!
 * HireHumble Custom Styles
 * Professional and Friendly Business Consulting Theme
 */

/* Color Palette - Professional Blues with Warm Accents */
:root {
  --primary-blue: #2563eb;
  --dark-blue: #1e40af;
  --light-blue: #3b82f6;
  --accent-orange: #f97316;
  --dark-gray: #1f2937;
  --medium-gray: #6b7280;
  --light-gray: #f3f4f6;
  --white: #ffffff;
}

/* Typography Improvements */
body {
  font-family: 'Lato', 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: #374151;
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Montserrat", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  color: var(--dark-gray);
}

/* Remove aggressive uppercase except for navigation */
h1, h2, h3, h4, h5, h6 {
  text-transform: none;
}

p {
  font-size: 18px;
  color: #4b5563;
}

/* Links */
a,
a:hover,
a:focus,
a:active,
a.active {
  color: var(--primary-blue);
  transition: all 0.3s ease;
}

a:hover {
  color: var(--accent-orange);
}

/* Navigation Bar - Professional Dark */
.navbar-custom {
  background: var(--dark-gray);
  padding: 20px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-custom .navbar-brand {
  font-size: 1.8em;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.5px;
}

.navbar-custom .navbar-nav li a:hover {
  color: var(--accent-orange);
}

.navbar-custom .navbar-nav li.active a {
  background: var(--primary-blue);
  border-radius: 4px;
}

.navbar-custom .navbar-toggle:hover,
.navbar-custom .navbar-toggle:focus {
  background-color: var(--primary-blue);
}

/* Header - Modern Gradient */
header {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
  padding: 60px 0 25px;
  position: relative;
  overflow: hidden;
}

header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="white" opacity="0.1"/></svg>');
  opacity: 0.3;
}

header .container {
  padding-top: 20px;
  padding-bottom: 15px;
  position: relative;
  z-index: 1;
}

header img {
  max-width: 150px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  margin-bottom: 10px;
}

header .intro-text .name {
  font-size: 2.2em;
  margin-bottom: 8px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

header .intro-text .skills {
  font-size: 1.2em;
  font-weight: 400;
  opacity: 0.95;
  text-transform: none;
}

@media (min-width: 768px) {
  header .container {
    padding-top: 30px;
    padding-bottom: 20px;
  }

  header .intro-text .name {
    font-size: 2.8em;
  }

  header .intro-text .skills {
    font-size: 1.3em;
  }
}

/* Dividers */
hr.star-light,
hr.star-primary {
  border-top: 3px solid;
  border-radius: 3px;
  max-width: 200px;
  margin: 8px auto 12px;
}

hr.star-light:after,
hr.star-primary:after {
  content: "\f0c0";
  font-size: 1.6em;
  padding: 0 0.3em;
}

hr.star-light {
  border-color: rgba(255, 255, 255, 0.8);
}

hr.star-light:after {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
}

hr.star-primary {
  border-color: var(--primary-blue);
}

hr.star-primary:after {
  background-color: var(--white);
  color: var(--primary-blue);
}

/* Sections */
section {
  padding: 30px 0;
}

section h2 {
  font-size: 2em;
  margin-bottom: 12px;
  position: relative;
}

section.success {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
  color: var(--white);
}

section.success p {
  color: rgba(255, 255, 255, 0.95);
}

.about-subheading,
.contact-subheading {
  color: var(--white);
  font-size: 1.6em;
  margin-bottom: 12px;
  margin-top: 0;
  text-align: left;
  font-weight: 700;
  text-transform: none;
}

/* Contact form card styling */
section.success #contact {
  background: var(--white);
  border-radius: 12px;
  padding: 20px 20px 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

section.success .contact-subheading {
  color: var(--dark-gray);
  margin-bottom: 8px;
  font-size: 1.3em;
}

section.success #contactForm .floating-label-form-group {
  margin-bottom: 8px;
  padding-bottom: 0.15em;
}

section.success #contactForm .floating-label-form-group input,
section.success #contactForm .floating-label-form-group textarea {
  font-size: 1em;
}

section.success #contactForm .btn-success {
  padding: 8px 25px;
  margin-top: 0;
  font-size: 0.9em;
}

/* Services Section */
#portfolio {
  background: var(--light-gray);
}

#portfolio .row {
  display: flex;
  flex-wrap: wrap;
}

#portfolio [class*="col-"] {
  display: flex;
  flex-direction: column;
}

.service-card {
  background: var(--white);
  border-radius: 10px;
  padding: 20px 18px;
  margin-bottom: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  flex: 1;
  display: flex;
  flex-direction: column;
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.service-icon {
  color: var(--primary-blue);
  margin-bottom: 12px;
  text-align: center;
}

.service-icon i {
  transition: all 0.3s ease;
}

.service-card:hover .service-icon i {
  color: var(--accent-orange);
  transform: scale(1.1);
}

.service-card h3 {
  color: var(--dark-gray);
  font-size: 1.3em;
  margin-bottom: 10px;
  text-align: center;
  font-weight: 700;
  text-transform: none;
}

.service-card p {
  color: #6b7280;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  margin: 0;
  flex-grow: 1;
  display: flex;
  align-items: center;
}

@media (max-width: 991px) {
  .service-card {
    margin-bottom: 15px;
  }

  .about-subheading,
  .contact-subheading {
    margin-top: 20px;
  }

  .about-subheading {
    margin-top: 0;
  }
}

.floating-label-form-group {
  border-bottom: 2px solid #e5e7eb;
  margin-bottom: 15px;
  padding-bottom: 0.3em;
}

.floating-label-form-group input,
.floating-label-form-group textarea {
  font-size: 1.2em;
  color: var(--dark-gray);
}

.floating-label-form-group-with-focus {
  border-bottom-color: var(--primary-blue);
}

.floating-label-form-group-with-focus label {
  color: var(--primary-blue);
}

/* Buttons */
.btn-success {
  background: linear-gradient(135deg, var(--accent-orange) 0%, #ea580c 100%);
  border: none;
  border-radius: 8px;
  padding: 12px 35px;
  font-size: 1em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
  transition: all 0.3s ease;
}

.btn-success:hover,
.btn-success:focus,
.btn-success:active {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}

.btn-default {
  background: var(--medium-gray);
  border: none;
  color: var(--white);
  border-radius: 6px;
  padding: 12px 30px;
  transition: all 0.3s ease;
}

.btn-default:hover {
  background: var(--dark-gray);
  color: var(--white);
}

.btn-primary {
  background: var(--primary-blue);
  border-color: var(--primary-blue);
  border-radius: 6px;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background: var(--dark-blue);
  border-color: var(--dark-blue);
}

/* Footer */
footer .footer-above {
  background: var(--dark-gray);
  padding: 25px 0;
}

footer .footer-below {
  background: #111827;
  padding: 12px 0;
}

footer h3 {
  font-size: 1.3em;
  margin-bottom: 12px;
  color: var(--white);
}

footer .footer-col {
  margin-bottom: 15px;
}

footer p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
}

.footer-contact-info {
  line-height: 2;
  text-align: center;
}

.footer-contact-info i {
  margin-right: 8px;
  color: var(--accent-orange);
}

.footer-link {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--accent-orange);
  text-decoration: none;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-social {
  margin-top: 15px;
}

.footer-social-center {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.btn-social {
  border: 2px solid rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
}

.btn-social:hover {
  background: var(--primary-blue);
  border-color: var(--primary-blue);
  transform: scale(1.1);
}

.btn-outline:hover,
.btn-outline:focus {
  background: var(--primary-blue);
  border-color: var(--primary-blue);
  color: var(--white);
}

/* Scroll to Top Button */
.scroll-top .btn {
  background: var(--primary-blue);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.scroll-top .btn:hover {
  background: var(--accent-orange);
}

/* Responsive adjustments */
@media (max-width: 767px) {
  header {
    padding: 50px 0 20px;
  }

  header .container {
    padding-top: 20px;
    padding-bottom: 15px;
  }

  header .intro-text .name {
    font-size: 1.8em;
  }

  header .intro-text .skills {
    font-size: 1em;
  }

  section {
    padding: 25px 0;
  }

  section h2 {
    font-size: 1.6em;
  }

  p {
    font-size: 15px;
  }

  .navbar-custom .navbar-brand {
    font-size: 1.4em;
  }

  footer .footer-above {
    padding: 20px 0;
  }

  footer .footer-col {
    margin-bottom: 12px;
  }
}

/* Accessibility improvements */
:focus {
  outline: 3px solid var(--accent-orange);
  outline-offset: 2px;
}

button:focus,
a:focus {
  outline: 3px solid var(--accent-orange);
  outline-offset: 2px;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Loading animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.col-md-6:nth-child(1) .service-card { animation-delay: 0.1s; }
.col-md-6:nth-child(2) .service-card { animation-delay: 0.2s; }
.col-md-6:nth-child(3) .service-card { animation-delay: 0.3s; }
.col-md-6:nth-child(4) .service-card { animation-delay: 0.4s; }
.col-md-6:nth-child(5) .service-card { animation-delay: 0.5s; }
.col-md-6:nth-child(6) .service-card { animation-delay: 0.6s; }
