/* Modern UI Enhancements */

/* CSS Variables for consistent theming */
:root {
  --primary-color: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary-color: #64748b;
  --accent-color: #06b6d4;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --border-light: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-accent: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
}

/* Global Styles */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', 'Inter', sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-white);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
}

.display-3 {
  font-weight: 700;
  letter-spacing: -0.025em;
}

/* Button Styles */
.btn-modern {
  padding: 12px 32px;
  border-radius: 12px;
  font-weight: 500;
  font-size: 16px;
  border: none;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary-modern {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary-modern:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: white;
}

.btn-outline-modern {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.btn-outline-modern:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  color: white;
}

/* Card Styles */
.card-modern {
  border: none;
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-modern:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(240, 245, 251, 1) 100%);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.card-modern .card-body {
  padding: 2rem;
}

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

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

/* Hero Section */
.hero-modern {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.hero-modern::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 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%"><stop offset="0%" stop-color="%23ffffff" stop-opacity="0.1"/><stop offset="100%" stop-color="%23ffffff" stop-opacity="0"/></radialGradient></defs><circle cx="200" cy="200" r="100" fill="url(%23a)"/><circle cx="800" cy="300" r="150" fill="url(%23a)"/><circle cx="400" cy="700" r="120" fill="url(%23a)"/></svg>');
  opacity: 0.1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

/* Section Styles */
.section-modern {
  padding: 5rem 0;
  background: var(--bg-light);
  position: relative;
  z-index: 2;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  position: relative;
}



/* FORCE ULTRA COMPACT NAVIGATION - Modern Dark Theme */
.navbar, .navbar-modern, nav.navbar {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%) !important;
  backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
  transition: all 0.3s ease !important;
  padding: 0 !important;
  min-height: 41px !important;
  height: 41px !important;
  line-height: 1 !important;
}

.navbar-modern.scrolled, .navbar.scrolled {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
}

.navbar-modern .container, .navbar .container {
  padding-top: 4px !important;
  padding-bottom: 4px !important;
}

/* Force ultra compact navbar brand with modern styling */
.navbar-modern .navbar-brand, .navbar .navbar-brand {
  font-size: 1.215rem !important; /* Reduced by 10% from 1.35rem */
  padding: 0 !important;
  margin: 0 !important;
  line-height: 1.2 !important;
  color: #f8fafc !important;
  font-weight: 700 !important;
}

/* Force ultra compact navigation links with modern styling */
.navbar-modern .nav-link, .navbar .nav-link {
  font-size: 1.0125rem !important; /* Reduced by 10% from 1.125rem */
  padding: 3px 10px !important;
  margin: 0 !important;
  line-height: 1.2 !important;
  color: #e2e8f0 !important;
  transition: all 0.3s ease !important;
}

.navbar-modern .nav-link:hover, .navbar .nav-link:hover {
  color: #60a5fa !important;
  transform: translateY(-1px) !important;
}

/* Force ultra compact CTA button with modern styling */
.navbar-modern .btn-modern, .navbar .btn {
  padding: 2px 10px !important;
  font-size: 0.945rem !important; /* Reduced by 10% from 1.05rem */
  line-height: 1.2 !important;
  min-height: auto !important;
  height: auto !important;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
  color: white !important;
  border: none !important;
  border-radius: 6px !important;
  transition: all 0.3s ease !important;
}

.navbar-modern .btn-modern:hover, .navbar .btn:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3) !important;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

/* Footer */
.footer-modern {
  background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%) !important;
  background-color: #2d3748 !important;
  color: white;
  padding: 3rem 0 1rem;
}

/* Force footer background with higher specificity */
footer.footer-modern {
  background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%) !important;
  background-color: #2d3748 !important;
}

/* Contact icon circles */
.contact-icon-circle {
  width: 80px;
  height: 80px;
  background: #2563eb !important; /* Blue color */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem auto;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.contact-icon-circle svg {
  fill: white !important;
}

/* Utility Classes */
.object-fit-cover {
  object-fit: cover;
}

/* Animations */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

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

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

/* Responsive Design */
@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .btn-modern {
    padding: 8px 16px; /* Reduced for mobile */
    font-size: 0.75rem; /* Reduced for mobile */
  }

  .hero-modern {
    min-height: 80vh;
  }

  .display-3 {
    font-size: 2rem;
  }

  /* Force mobile ultra compact navbar with modern dark theme */
  .navbar, .navbar-modern, nav.navbar {
    min-height: 35px !important;
    height: 35px !important;
  }

  .navbar-modern .container, .navbar .container {
    padding-top: 3px !important;
    padding-bottom: 3px !important;
  }

  .navbar-modern .navbar-brand, .navbar .navbar-brand {
    font-size: 1.08rem !important; /* Reduced by 10% from 1.2rem */
  }

  .navbar-modern .nav-link, .navbar .nav-link {
    font-size: 0.8775rem !important; /* Reduced by 10% from 0.975rem */
    padding: 2px 8px !important;
  }

  .navbar-modern .btn-modern, .navbar .btn {
    padding: 2px 8px !important;
    font-size: 0.81rem !important; /* Reduced by 10% from 0.9rem */
  }
}

@media (max-width: 576px) {
  .section-title {
    font-size: 1.8rem;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* FORCE NAVBAR HEIGHT INCREASE - HIGHEST PRIORITY */
nav.navbar,
.navbar,
.navbar-modern,
header nav,
header .navbar {
  min-height: 41px !important;
  height: 41px !important;
  padding: 0 !important;
}

nav.navbar .container,
.navbar .container,
.navbar-modern .container,
header nav .container,
header .navbar .container {
  padding-top: 4px !important;
  padding-bottom: 4px !important;
}
