/* 
Theme Colors: 
Primary: #6473D2
Accent: #F39C12 (Orange/Yellow)
Secondary: #34495e (Dark Grey)
Light Grey: #f8f9fa
*/

:root {
  --primary-color: #1E3A8A;
  /* Deep Navy Blue */
  --primary-hover: #1e40af;
  --accent-color: #F59E0B;
  /* Amber/Gold */
  --accent-hover: #d97706;
  --secondary-color: #0F172A;
  /* Rich Slate */
  --text-dark: #1E293B;
  --text-light: #F8FAFC;
  --bg-light: #F1F5F9;
  --bg-dark: #0B1120;
  --premium-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.1);
  --premium-shadow-hover: 0 20px 40px -5px rgba(0, 0, 0, 0.15);
}

html,
body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-dark);
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

.main-wrapper {
  overflow-x: hidden;
  width: 100%;
}

.container {
  padding-left: 25px !important;
  padding-right: 25px !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  color: var(--secondary-color);
}

.hero-header {
  color: var(--text-light);
}

/* Utilities */
.text-primary {
  color: var(--primary-color) !important;
}

.bg-primary {
  background: linear-gradient(135deg,
      #081B33 0%,
      #123D8D 50%,
      #1A56DB 100%) !important;
}

.text-accent {
  color: var(--accent-color) !important;
}

.bg-accent {
  background-color: var(--accent-color) !important;
}

.bg-light-grey {
  background-color: var(--bg-light) !important;
}

.py-100 {
  padding-top: 100px !important;
  padding-bottom: 100px !important;
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
  border: none;
  color: white;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 12px 28px;
  border-radius: 8px;
  box-shadow: 0 4px 14px 0 rgba(30, 58, 138, 0.39);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary-color) 100%);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(30, 58, 138, 0.23);
  color: white;
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
  border: none;
  color: #fff;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 12px 28px;
  border-radius: 8px;
  box-shadow: 0 4px 14px 0 rgba(245, 158, 11, 0.39);
}

.btn-accent:hover {
  background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent-color) 100%);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.23);
}

/* Header */
.navbar {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
  background-color: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.navbar-brand img {
  max-height: 50px;
}

.nav-link {
  font-weight: 500;
  color: var(--secondary-color) !important;
  font-size: 0.95rem;
  margin: 0 12px;
  transition: color 0.3s, transform 0.3s;
  position: relative;
}

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

.nav-link:hover::before,
.nav-link.active::before {
  width: 100%;
}

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

/* Open Dropdown on Hover for Desktop */
@media all and (min-width: 992px) {
  .navbar .dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
  }
}

/* Custom Hamburger Icon Animation */
.hamburger-icon {
  width: 24px;
  height: 20px;
  position: relative;
  transform: rotate(0deg);
  transition: .5s ease-in-out;
  cursor: pointer;
}

.hamburger-icon span {
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  background: var(--primary-color);
  border-radius: 9px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: .25s ease-in-out;
}

.hamburger-icon span:nth-child(1) {
  top: 0px;
}

.hamburger-icon span:nth-child(2) {
  top: 9px;
}

.hamburger-icon span:nth-child(3) {
  top: 18px;
}

.navbar-toggler[aria-expanded="true"] .hamburger-icon span:nth-child(1) {
  top: 9px;
  transform: rotate(135deg);
}

.navbar-toggler[aria-expanded="true"] .hamburger-icon span:nth-child(2) {
  opacity: 0;
  left: -20px;
}

.navbar-toggler[aria-expanded="true"] .hamburger-icon span:nth-child(3) {
  top: 9px;
  transform: rotate(-135deg);
}

.custom-toggler:focus {
  box-shadow: none;
}

/* Hero Section (Fluentgrid style animation placeholder) */
.hero-section {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  background-color: var(--bg-dark);
  color: var(--text-light);
  overflow: hidden;
}

.hero-video-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: 0;
  transform: translateX(-50%) translateY(-50%);
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 58, 138, 0.6) 100%);
  z-index: 1;
}

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

.letter-spacing-1 {
  letter-spacing: 1px;
}

@keyframes zoomInOut {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.1);
  }
}

/* Cards */
.service-card,
.project-card {
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--premium-shadow);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  background: #fff;
  align-items: center;

}

.service-card:hover,
.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--premium-shadow-hover);
}

.service-card img,
.project-card img {
  width: 320px;
  height: 274px;
  /*object-fit: cover;*/
}

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

.section-title {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: var(--accent-color);
  margin: 0 auto;
  border-radius: 2px;
}

/* Stats Counter */
.stat-item {
  text-align: center;
  padding: 30px;
  background: var(--primary-color);
  color: white;
  border-radius: 10px;
  margin-bottom: 20px;
}

.stat-item h3 {
  color: white;
  font-size: 3.5rem;
  margin-bottom: 10px;
}

/* Footer */
footer {
  background-color: var(--secondary-color);
  color: #ccc;
  padding-top: 60px;
}

footer h4 {
  color: white;
  margin-bottom: 20px;
}

footer a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
}

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

.footer-bottom {
  background-color: #2c3e50;
  padding: 20px 0;
  margin-top: 40px;
  text-align: center;
}

/* Whatsapp Float */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 3px #999;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.whatsapp-float:hover {
  color: #fff;
  transform: scale(1.1);
}

.justify-text {
  text-align: justify;
}

.hover-elevate {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-elevate:hover {
  transform: translateY(-5px);
  box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15) !important;
}

.dropdown-item {
  padding: 0.65rem 1.5rem;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {

  /* Fix logo pushing hamburger menu out */
  .navbar-brand img {
    max-height: 45px !important;
  }

  /* Hero typography scaling */
  .hero-header {
    font-size: 2.2rem !important;
  }

  .hero-content .lead {
    font-size: 1rem !important;
  }

  /* Fix hero content horizontal overflow */
  .hero-content {
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
  }

  /* Stack buttons nicely on mobile */
  .hero-content .btn {
    width: 100%;
    margin-bottom: 10px;
    padding: 12px 15px !important;
    font-size: 0.9rem;
  }

  .py-100 {
    padding-top: 50px !important;
    padding-bottom: 50px !important;
  }

  .hero-section {
    min-height: 60vh;
  }
}