/* ========================================
   ROOT VARIABLES
   ======================================== */
:root {
  --primary-dark: #000828;
  --primary-card: rgba(10, 17, 49, 0.7);
  --primary-card-hover: rgba(10, 17, 49, 0.85);
  --text-white: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.5);
  --text-muted-light: rgba(255, 255, 255, 0.7);
  --accent-blue: #8ab4f8;
  --accent-purple: #9732f9;
  --accent-indigo: #5364f7;
  --accent-gold: #f5a623;
  --accent-green: #4ade80;
  --accent-red: #f87171;
  --btn-primary-bg: #1a4a8a;
  --btn-primary-hover: #2a5a9a;
  --border-light: rgba(255, 255, 255, 0.06);
  --border-medium: rgba(255, 255, 255, 0.12);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.2);
  --shadow-hover: 0 6px 28px rgba(0, 0, 0, 0.3);
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --radius-full: 30px;
  --radius-pill: 60px;
  --transition: all 0.3s ease;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ========================================
   BASE STYLES
   ======================================== */
* {
  font-family: var(--font-family);
}

body {
  background: var(--primary-dark);
  padding-top: 90px;
  color: var(--text-white);
}

/* ========================================
   NAVBAR
   ======================================== */
.navbar-custom {
  background: var(--primary-dark);
  padding: 0.5rem 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid var(--border-light);
  min-height: 82px;
}

.navbar-custom .navbar-brand {
  color: var(--text-white);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.5px;
  padding: 0;
}

.navbar-custom .navbar-brand img {
  height: 52px;
  width: auto;
  display: block;
}

.navbar-custom .navbar-brand .ai-badge {
  background: rgba(255, 255, 255, 0.12);
  color: var(--accent-blue);
  font-size: 0.6rem;
  font-weight: 600;
  padding: 0.2rem 0.7rem;
  border-radius: 20px;
  margin-left: 8px;
  letter-spacing: 0.3px;
}

.navbar-nav .nav-link.show{
	color: white !important;
}

.navbar-custom .nav-link {
  color: white;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
  color: var(--text-white);
  background: rgba(64 155 76);
}

.navbar-custom .btn-outline-light {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-white);
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: 0.85rem;
  padding: 0.4rem 1.4rem;
}

.navbar-custom .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.35);
}

.navbar-custom .btn-primary {
  background: var(--btn-primary-bg);
  border: none;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.4rem 1.4rem;
  color: var(--text-white);
}

.navbar-custom .btn-primary:hover {
  background: var(--btn-primary-hover);
}

.navbar-custom .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.2);
  padding: 0.4rem 0.6rem;
}

.navbar-custom .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(255,255,255,0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ========================================
   MEGA DROPDOWN STYLES
   ======================================== */

.navbar-custom .dropdown-menu-mega {
  width: 700px;
  max-width: 90vw;
  padding: 0;
}

.navbar-custom .dropdown-menu-mega .dropdown-header {
  color: #8ab4f8;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.5rem 0 0.3rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  margin-bottom: 0.3rem;
}

.navbar-custom .dropdown-menu-mega .dropdown-item {
  padding: 0.3rem 0;
  font-size: 0.85rem;
}

.navbar-custom .dropdown-menu-mega .row {
  padding: 0.5rem 0;
}

@media (max-width: 991.98px) {
  .navbar-custom .dropdown-menu-mega {
    width: 100%;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    box-shadow: none;
    padding: 0 0 0 1rem;
  }
  
  .navbar-custom .dropdown-menu-mega .row {
    padding: 0;
  }
  
  .navbar-custom .dropdown-menu-mega .dropdown-header {
    color: rgba(255,255,255,0.5);
    font-size: 0.75rem;
    padding-top: 0.8rem;
  }
  
  .navbar-custom .dropdown-menu-mega .col-md-3,
  .navbar-custom .dropdown-menu-mega .col-md-4 {
    padding: 0;
  }
}

/* ========================================
   SECTION HEADINGS
   ======================================== */
.section-title {
  font-weight: 700;
  font-size: 2rem;
  color: var(--text-white);
  letter-spacing: -0.5px;
}

.section-title .highlight {
  color: var(--accent-blue);
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ========================================
   BUTTON WITH ARROW
   ======================================== */
.btn-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(26, 74, 138, 0.2);
  border: 1px solid rgba(26, 74, 138, 0.3);
  color: var(--accent-blue);
  border-radius: var(--radius-pill);
  padding: 0.6rem 1.8rem;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  text-decoration: none;
}

.btn-arrow:hover {
  background: var(--btn-primary-bg);
  border-color: var(--btn-primary-bg);
  color: var(--text-white);
  transform: translateX(4px);
}

.btn-arrow-large {
  padding: 0.8rem 2.8rem;
  font-size: 1.1rem;
  background: rgba(26, 74, 138, 0.3);
  border: 1px solid rgba(26, 74, 138, 0.4);
}

.btn-arrow-large:hover {
  background: var(--btn-primary-bg);
  border-color: var(--btn-primary-bg);
  color: var(--text-white);
  transform: translateX(6px);
}

.btn-arrow i {
  transition: transform 0.3s;
}

.btn-arrow:hover i {
  transform: translateX(4px);
}

/* ========================================
   FOOTER - PROPER ALIGNMENT
   ======================================== */

.footer {
  background: var(--primary-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 3rem 0 1.5rem 0;
  margin-top: 2rem;
}

/* ===== Logo ===== */
.footer-brand {
  margin-bottom: 1rem;
}

.footer-logo-img {
  max-width: 200px;
  height: auto;
}

/* ===== Social Icons - Centered ===== */
.footer-social {
  display: flex;
  gap: 0.8rem;
  justify-content: flex-start;
  margin-top: 0.5rem;
}

.footer-social a {
  color: rgba(255, 255, 255, 0.4);
  font-size: 1.1rem;
  transition: all 0.2s;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.3s ease;
}

.footer-social a:hover {
  color: var(--accent-blue);
  border-color: rgba(138, 180, 248, 0.2);
  background: rgba(138, 180, 248, 0.06);
  transform: translateY(-2px);
}

/* ===== Footer Headings ===== */
.footer-heading {
  color: var(--text-white);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

/* ===== Footer Links ===== */
.footer-link {
  display: block;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 0.85rem;
  padding: 0.25rem 0;
  transition: all 0.2s;
}

.footer-link:hover {
  color: var(--accent-blue);
  padding-left: 4px;
}

/* ===== Footer Description ===== */
.footer-desc {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
  line-height: 1.7;
  max-width: 700px;
  margin: 0.5rem auto 0;
  text-align: center;
}

/* ===== Footer Bottom ===== */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 1.2rem;
  margin-top: 1.5rem;
}

.footer-bottom .row {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.8rem;
}

.footer-bottom .row i {
  color: var(--accent-blue);
}

.footer-bottom-text {
  text-align: center;
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.75rem;
  margin-top: 0.8rem;
}

/* ========================================
   RESPONSIVE - FOOTER
   ======================================== */

/* Desktop */
@media (min-width: 992px) {
  .footer-social {
    justify-content: flex-start;
  }
  
  .footer-brand {
    text-align: left;
  }
}

/* Tablet & Mobile */
@media (max-width: 991.98px) {
  .footer-social {
    justify-content: center;
  }
  
  .footer-brand {
    text-align: center;
  }
  
  .footer-logo-img {
    margin: 0 auto;
    display: block;
  }
}

/* Mobile - 2 columns per row */
@media (max-width: 767.98px) {
  .footer {
    padding: 2rem 0 1rem 0;
  }
  
  /* Each column takes 50% width on mobile */
  .footer .col-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding-right: 0.75rem;
    padding-left: 0.75rem;
  }
  
  .footer-logo-img {
    max-width: 160px;
  }
  
  .footer-social a {
    width: 34px;
    height: 34px;
    font-size: 0.95rem;
  }
  
  .footer-heading {
    font-size: 0.8rem;
    margin-bottom: 0.6rem;
  }
  
  .footer-link {
    font-size: 0.75rem;
    padding: 0.2rem 0;
  }
  
  .footer-desc {
    font-size: 0.75rem;
    padding: 0 0.5rem;
  }
  
  .footer-bottom .row {
    font-size: 0.7rem;
  }
  
  .footer-bottom .text-md-start,
  .footer-bottom .text-md-end {
    text-align: center !important;
  }
  
  .footer-bottom .mx-2 {
    margin: 0 0.3rem !important;
  }
  
  .footer-bottom-text {
    font-size: 0.6rem;
  }
}

/* Small Mobile */
@media (max-width: 576px) {
  .footer-logo-img {
    max-width: 140px;
  }
  
  .footer-social {
    gap: 0.5rem;
  }
  
  .footer-social a {
    width: 30px;
    height: 30px;
    font-size: 0.85rem;
  }
  
  .footer-heading {
    font-size: 0.75rem;
  }
  
  .footer-link {
    font-size: 0.7rem;
    padding: 0.15rem 0;
  }
  
  .footer-desc {
    font-size: 0.7rem;
  }
}

/* Very Small Mobile */
@media (max-width: 380px) {
  .footer .col-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding-right: 0.5rem;
    padding-left: 0.5rem;
  }
  
  .footer-heading {
    font-size: 0.7rem;
  }
  
  .footer-link {
    font-size: 0.65rem;
  }
}

/* ========================================
   HERO BADGE
   ======================================== */
.hero-badge {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 1.2rem;
  border-radius: var(--radius-full);
  display: inline-block;
  border: 1px solid var(--border-light);
}

/* ========================================
   HOME SECTION - MARGIN CONTROL
   ======================================== */
@media (min-width: 992px) {
  #home {
    margin-top: -50px !important;
  }
}

@media (max-width: 991.98px) {
  #home {
    margin-top: 0 !important;
  }
}

/* ========================================
   RESPONSIVE BREAKPOINTS
   ======================================== */
@media (max-width: 991.98px) {
  .navbar-custom .navbar-collapse {
    background: var(--primary-dark);
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-top: 0.5rem;
    border: 1px solid var(--border-light);
  }
  .navbar-custom {
    min-height: auto;
    padding: 0.5rem 0;
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 1.6rem;
  }
  .why-image {
    min-height: 200px;
    margin-bottom: 1rem;
  }
  .footer .footer-desc {
    max-width: 100%;
  }
  .display-tagline {
    font-size: 2.2rem !important;
  }
}

@media (max-width: 576px) {
  body {
    padding-top: 76px;
  }
  .navbar-custom .navbar-brand img {
    height: 40px;
  }
  .section-title {
    font-size: 1.3rem;
  }
  .category-card {
    padding: 0.8rem 1rem;
  }
  .job-card .job-img {
    height: 100px;
  }
  .display-tagline {
    font-size: 1.8rem !important;
  }
  .hero-badge {
    font-size: 0.65rem;
    padding: 0.2rem 0.8rem;
  }
}

/* ========================================
   UTILITY CLASSES (for future pages)
   ======================================== */
.text-accent-blue { color: var(--accent-blue); }
.text-accent-purple { color: var(--accent-purple); }
.text-accent-indigo { color: var(--accent-indigo); }
.text-accent-gold { color: var(--accent-gold); }
.text-accent-green { color: var(--accent-green); }
.text-accent-red { color: var(--accent-red); }

.bg-gradient-purple-blue {
  background: linear-gradient(135deg, var(--accent-purple) 30%, var(--accent-indigo) 70%);
}

.bg-gradient-blue-gold {
  background: linear-gradient(135deg, var(--accent-blue) 30%, var(--accent-gold) 70%);
}

.gradient-text {
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Section spacing utilities */
.section-padding {
  padding: 4rem 0;
}

.section-padding-sm {
  padding: 2rem 0;
}

.section-padding-lg {
  padding: 6rem 0;
}

/* Card hover lift effect */
.card-lift {
  transition: var(--transition);
}

.card-lift:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}