/* ==========================================================================
   EM CONSULTING - Main Stylesheet
   ========================================================================== */

/* ===== Variables ===== */
:root {
  /* Colors */
  --primary-cyan: #41ccec;
  --primary-dark: #132a62;
  --white: #ffffff;
  --gray-100: #f8f9fa;
  --gray-200: #eef2f6;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #9aa6c2;
  --gray-600: #6c757d;
  --gray-700: #495057;
  --gray-800: #343a40;
  --gray-900: #212529;
  --black: #000000;

  /* Typography */
  --font-primary: 'Poppins', sans-serif;
  --font-secondary: 'Open Sans', sans-serif;
  
  /* Spacing */
  --spacing-unit: 1rem;
  
  /* Border radius */
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-pill: 50px;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  
  /* Transitions */
  --transition: 250ms cubic-bezier(0.2, 0.9, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

/* ===== Base Styles ===== */
html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-secondary);
  color: var(--gray-700);
  line-height: 1.6;
  overflow-x: hidden;
  padding-top: 80px; /* For fixed navbar */
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--font-primary);
  font-weight: 600;
  line-height: 1.3;
  color: var(--primary-dark);
}

a {
  color: var(--primary-cyan);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--primary-dark);
  text-decoration: none;
}

p {
  margin-bottom: 1rem;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== Buttons ===== */
.btn {
  font-weight: 600;
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius);
  transition: all var(--transition);
  letter-spacing: 0.2px;
  text-transform: uppercase;
  font-size: 0.875rem;
  line-height: 1.5;
  border: 2px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn i {
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--primary-cyan);
  border-color: var(--primary-cyan);
  color: var(--white);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #2fb5d4;
  border-color: #2fb5d4;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-primary {
  background-color: transparent;
  border-color: var(--primary-cyan);
  color: var(--primary-cyan);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background-color: var(--primary-cyan);
  border-color: var(--primary-cyan);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-lg {
  padding: 0.8rem 2rem;
  font-size: 1rem;
}

/* ===== Logo ===== */
.navbar-brand {
    padding: 0;
    margin-right: 2rem;
}

.navbar-brand img {
    height: 40px;
    width: auto;
    transition: var(--transition);
}

/* ===== Navigation ===== */
.navbar {
  padding: 1rem 0;
  transition: all var(--transition);
  background-color: var(--white) !important;
  box-shadow: var(--shadow-sm);
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-dark) !important;
}

.nav-link {
  font-weight: 500;
  padding: 0.5rem 1rem;
  color: var(--gray-700) !important;
  transition: color var(--transition);
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 48px;
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active {
  color: var(--primary-cyan) !important;
  background-color: transparent;
}

.nav-link:active {
  background-color: rgba(65, 204, 236, 0.06) !important;
}

.dropdown-menu {
  border: none;
  box-shadow: var(--shadow-md);
  border-radius: var(--radius);
  padding: 0.5rem 0;
  margin-top: 0.5rem;
  border: 1px solid var(--gray-200);
}

.dropdown-item {
  padding: 0.5rem 1.25rem;
  font-weight: 400;
  color: var(--gray-700);
  transition: all var(--transition);
}

.dropdown-item:hover,
.dropdown-item:focus {
  background-color: var(--gray-100);
  color: var(--primary-cyan);
}

/* ===== Hero Section ===== */
.hero-section {
  background: linear-gradient(135deg, rgba(19, 42, 98, 0.9) 0%, rgba(65, 204, 236, 0.9) 100%), 
              url('../img/hero-bg.jpg') no-repeat center center/cover;
  color: var(--white);
  padding: 8rem 0 6rem;
  min-height: 80vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-section h1 {
  font-size: 3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-section p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* ===== Cards ===== */
.card {
  border: none;
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  height: 100%;
  background-color: var(--white);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg) !important;
}

.card-body {
  padding: 2rem;
}

.icon-wrapper {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: rgba(65, 204, 236, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--primary-cyan);
  font-size: 1.75rem;
  transition: all var(--transition);
}

.card:hover .icon-wrapper {
  background-color: var(--primary-cyan);
  color: var(--white);
  transform: scale(1.1);
}

/* ===== Sections ===== */
section {
  padding: 5rem 0;
  position: relative;
}

.section-title {
  position: relative;
  margin-bottom: 3rem;
  text-align: center;
}

.section-title h2 {
  font-weight: 700;
  font-size: 2.25rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 3px;
  background-color: var(--primary-cyan);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

/* ===== Footer ===== */
footer {
  background-color: var(--primary-dark);
  color: var(--white);
  padding: 4rem 0 2rem;
}

footer h5 {
  color: var(--white);
  font-weight: 600;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}

footer h5::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background-color: var(--primary-cyan);
}

footer ul li {
  margin-bottom: 0.75rem;
}

footer a {
  color: var(--gray-400);
  transition: all var(--transition);
  text-decoration: none;
}

footer a:hover {
  color: var(--primary-cyan);
  padding-left: 5px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  margin-right: 0.5rem;
  transition: all var(--transition);
}

.social-links a:hover {
  background-color: var(--primary-cyan);
  transform: translateY(-3px);
  color: var(--white);
  padding-left: 0;
}

/* ===== Back to Top Button ===== */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  display: flex;
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

/* ===== Responsive Styles ===== */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: var(--white);
    padding: 1rem;
    margin-top: 1rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }
  
  .nav-link {
    padding: 0.75rem 0;
    height: auto;
  }
  
  .hero-section h1 {
    font-size: 2.5rem;
  }
  
  section {
    padding: 4rem 0;
  }
}

@media (max-width: 767.98px) {
  .hero-section {
    padding: 6rem 0 4rem;
    min-height: auto;
    text-align: center;
  }
  
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .hero-section p {
    font-size: 1.1rem;
  }
  
  .section-title h2 {
    font-size: 1.75rem;
  }
  
  footer {
    text-align: center;
  }
  
  footer h5::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .social-links {
    justify-content: center !important;
    margin-top: 1.5rem;
  }
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

/* ===== Utilities ===== */
.bg-light {
  background-color: var(--gray-100) !important;
}

.text-primary {
  color: var(--primary-cyan) !important;
}

.text-primary-dark {
  color: var(--primary-dark) !important;
}

.rounded {
  border-radius: var(--radius) !important;
}

.shadow-sm {
  box-shadow: var(--shadow-sm) !important;
}

.shadow {
  box-shadow: var(--shadow) !important;
}

.shadow-lg {
  box-shadow: var(--shadow-lg) !important;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.mt-3 {
  margin-top: 1rem !important;
}

.mb-4 {
  margin-bottom: 1.5rem !important;
}

.pb-5 {
  padding-bottom: 3rem !important;
}

.pt-5 {
  padding-top: 3rem !important;
}

/* ===== Hero Section ===== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: var(--white);
    overflow: hidden;
    margin-top: -80px;
    padding-top: 80px;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    animation: fadeInVideo 2s ease-in-out;
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(19, 80, 98, 0.9) 0%,
        rgba(19, 80, 98, 0.7) 50%,
        rgba(19, 80, 98, 0.9) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 2rem 0;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInDown 1s ease-out;
}

.hero-content .lead {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out 0.3s;
    animation-fill-mode: both;
}

.hero-content .btn {
    animation: fadeInUp 1s ease-out 0.6s;
    animation-fill-mode: both;
}

/* Animations */
@keyframes fadeInVideo {
    from {
        opacity: 0;
        transform: scale(1.1);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .hero-content .lead {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 80vh;
    }
    
    .hero-content {
        padding: 4rem 1rem;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content .lead {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .hero-video-overlay {
        background: linear-gradient(
            to bottom,
            rgba(19, 80, 98, 0.9) 0%,
            rgba(19, 80, 98, 0.7) 50%,
            rgba(19, 80, 98, 0.9) 100%
        );
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content .lead {
        font-size: 1rem;
    }
    
    .hero-content .btn {
        width: 100%;
        max-width: 250px;
    }
}

/* ===== Print Styles ===== */
@media print {
  .no-print {
    display: none !important;
  }
  
  body {
    padding-top: 0;
    font-size: 12pt;
  }
  
  .container {
    max-width: 100%;
  }
}
