/* Afrithink Solutions Custom Theme - Navy Blue, Red, White */
:root {
  --primary-navy: #1e3a8a;
  --primary-red: #dc2626;
  --light-navy: #3b82f6;
  --light-red: #ef4444;
  --white: #ffffff;
  --light-gray: #f8fafc;
  --dark-gray: #64748b;
  --text-dark: #1e293b;
}

html {
  font-size: 14px;
  scroll-behavior: smooth;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  margin-bottom: 60px;
  background-color: var(--white);
}

/* Custom focus styles */
.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 var(--primary-navy);
}

html {
  position: relative;
  min-height: 100%;
}

/* Navigation Styles */
.navbar-custom {
  background: linear-gradient(135deg, var(--primary-navy) 0%, var(--light-navy) 100%);
  box-shadow: 0 2px 10px rgba(30, 58, 138, 0.1);
  padding: 1rem 0;
}

.navbar-custom .navbar-brand {
  color: var(--white) !important;
  font-weight: 700;
  font-size: 1.5rem;
}

.navbar-custom .nav-link {
  color: var(--white) !important;
  font-weight: 500;
  margin: 0 0.5rem;
  transition: all 0.3s ease;
}

.navbar-custom .nav-link:hover {
  color: var(--light-gray) !important;
  transform: translateY(-1px);
}

.navbar-toggler {
  border-color: var(--white);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--primary-navy) 0%, var(--light-navy) 50%, var(--primary-red) 100%);
  color: var(--white);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* Buttons */
.btn-primary-custom {
  background: var(--primary-red);
  border: none;
  color: var(--white);
  padding: 12px 30px;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary-custom:hover {
  background: var(--light-red);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(220, 38, 38, 0.4);
  color: var(--white);
}

.btn-outline-custom {
  border: 2px solid var(--white);
  color: var(--white);
  background: transparent;
  padding: 12px 30px;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-outline-custom:hover {
  background: var(--white);
  color: var(--primary-navy);
  transform: translateY(-2px);
}

/* Services Section */
.services-section {
  padding: 80px 0;
  background: var(--light-gray);
}

.service-card {
  background: var(--white);
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  height: 100%;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-navy), var(--primary-red));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: var(--white);
}

.service-title {
  color: var(--primary-navy);
  font-weight: 700;
  margin-bottom: 1rem;
}

.service-description {
  color: var(--dark-gray);
  line-height: 1.6;
}

/* About Section */
.about-section {
  padding: 80px 0;
  background: var(--white);
}

.section-title {
  color: var(--primary-navy);
  font-weight: 800;
  margin-bottom: 1rem;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--primary-red);
  border-radius: 2px;
}

.section-subtitle {
  color: var(--dark-gray);
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

/* Contact Section */
.contact-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary-navy) 0%, var(--light-navy) 100%);
  color: var(--white);
}

.contact-info {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--primary-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  font-size: 1.2rem;
}

/* Footer */
.footer-custom {
  background: var(--text-dark);
  color: var(--white);
  padding: 2rem 0;
  text-align: center;
}

.footer-custom a {
  color: var(--primary-red);
  text-decoration: none;
}

.footer-custom a:hover {
  color: var(--light-red);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .service-card {
    margin-bottom: 2rem;
  }
  
  .hero-section {
    padding: 60px 0;
  }
  
  .services-section,
  .about-section,
  .contact-section {
    padding: 60px 0;
  }
}

/* Form styles */
.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--dark-gray);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* Logo styles */
.logo-container {
  display: flex;
  align-items: center;
}

.logo-container img {
  height: 40px;
  margin-right: 10px;
}