/* =========================================
   1. Variables & Base Setup
   ========================================= */
:root {
    --primary-color: #0f172a; 
    --secondary-color: #f59e0b; 
    --text-light: #f8fafc;
    --text-dark: #334155;
    --top-bar-height: 40px;
    --transition: all 0.3s ease-in-out;
}

/* REMOVED THE RED OUTLINE CODE FROM HERE */

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important; /* Forces the browser to cut off the AOS overflow */
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
}

/* =========================================
   2. Utilities & Helpers
   ========================================= */
.bg-primary {
    --bs-bg-opacity: 1;
    background-color: #0f172a !important;
}

.text-primaryy {
    color: #0f172a !important; /* Fixed comma syntax error */
}

.tracking-wide {
    letter-spacing: 2px;
    font-size: 0.8rem;
    font-weight: 700;
}

.text-gradient {
    background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%); 
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.z-2 {
    z-index: 2;
}

.object-fit-cover {
    object-fit: cover;
}

.transition-all {
    transition: all 0.3s ease;
}

.hover-shadow:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-color: var(--secondary-color) !important;
}

/* =========================================
   3. Navigation & Top Bar
   ========================================= */
.top-bar {
    background-color: #000000 !important;
    color: #cbd5e1;
    min-height: var(--top-bar-height); 
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    z-index: 1031;
}

.top-bar a {
    color: #cbd5e1;
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.85rem; 
}

.top-bar a:hover {
    color: var(--secondary-color);
}

.top-bar-divider {
    margin: 0 8px;
    color: #475569;
}

.navbar {
    background: transparent;
    transition: var(--transition);
    padding: 1rem 0;
    top: var(--top-bar-height); 
    /* Merged duplicate .navbar rules here */
}

.navbar.scrolled {
    background: var(--primary-color);
    padding: 1rem 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--text-light) !important;
}

.navbar-brand span {
    color: var(--secondary-color);
}

.nav-link {
    color: var(--text-light) !important;
    font-weight: 500;
    margin-left: 1.5rem;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

/* =========================================
   4. Buttons
   ========================================= */
/* Force override button styles */
button.override-btn,
.override-btn,
button.override-btn:visited {
  background-color: #f59e0b !important;
  color: #0f172a !important;
  border: none !important;
  padding: 12px 20px !important;
  cursor: pointer !important;
  transition: background-color 0.3s ease, color 0.3s ease !important;
  font-weight: 700 !important;
  text-decoration: none;
}

button.override-btn:hover,
.override-btn:hover {
  background-color: #0f172a !important;
  color: white !important;
}

.btn-custom {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border-radius: 4px;
    border: none;
    transition: var(--transition);
}

.btn-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    color: #0f172a;
}

.btn:hover {    
    color: white;
    border-color: yellow;
}

.btn-custom-primary {
    background: white;
    color: #0f172a;
    font-weight: 600;
    border: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-custom-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    color: #0f172a;
}

.btn-custom-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
    transition: 0.5s;
}

.btn-custom-primary:hover::before {
    left: 100%;
}

/* =========================================
   5. Hero Section & Effects
   ========================================= */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background: url('../images/univera_index.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: var(--top-bar-height); 
}

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

.glass-content {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* =========================================
   6. Services Section
   ========================================= */
#services {
  background: #f8f9fa;
}

#services h6 {
  letter-spacing: 2px;
  font-size: 0.75rem;
}

#services h2 {
  margin-top: 10px;
  margin-bottom: 15px;
}

.service-card {
  border-radius: 16px;
  overflow: hidden;
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  position: relative;
  cursor: pointer; /* Merged from duplicate block */
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 40%,
    rgba(0, 0, 0, 0.05)
  );
  pointer-events: none;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
}

.service-card img {
  height: 200px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.service-card:hover img {
  transform: scale(1.08);
}

.service-body {
  padding: 24px;
}

.service-body h5 {
  font-weight: 700;
  margin-bottom: 10px;
  color: #111;
}

.service-body p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.service-body a {
  font-size: 0.9rem;
  color: #0d6efd;
  position: relative;
  display: inline-flex;
  align-items: center;
  transition: color 0.3s ease;
}

.service-body a i {
  transition: transform 0.3s ease;
}

.service-body a:hover {
  color: #000;
}

.service-body a:hover i {
  transform: translateX(6px);
}

.service-feature-card:hover img {
    transform: scale(1.05);
    transition: transform 0.5s ease;
}

.service-hero {
  position: relative;
  height: 350px;
  background-size: cover;
  background-position: center;
}

/* =========================================
   7. Features, Stats & Capabilities
   ========================================= */
.feature-box {
    text-align: center;
    padding: 2rem;
    background: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    transition: var(--transition);
    height: 100%;
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.stats-section,
.capabilities-section {
  background: radial-gradient(
    circle at top,
    #1e293b,
    #0f172a
  );
}

.stat-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 16px;
  padding: 28px 20px;
  transition: all 0.4s ease;
  backdrop-filter: blur(6px);
}

.stat-card h2 {
  font-size: 3rem;
  font-weight: 800;
  color: #f59e0b;
  margin-bottom: 6px;
  letter-spacing: -1px;
}

.stat-card p {
  margin: 0;
  color: #cbd5f5;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.stat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(245, 158, 11, 0.25);
  border-color: #f59e0b;
}

.capability-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 16px;
  padding: 32px 22px;
  transition: all 0.4s ease;
  backdrop-filter: blur(6px);
  color: #e5e7eb;
}

.capability-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  font-size: 1.6rem;
}

.capability-card h5 {
  font-weight: 700;
  margin-bottom: 10px;
  color: #f8fafc;
}

.capability-card p {
  font-size: 0.95rem;
  color: #cbd5f5;
  line-height: 1.6;
}

.capability-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(245, 158, 11, 0.25);
  border-color: #f59e0b;
}

.capability-card:hover .capability-icon {
  background: #f59e0b;
  color: #0f172a;
}

/* =========================================
   8. Why Choose Us / Values
   ========================================= */
.choose-us-section {
    background-color: #f8fafc;
    padding: 5rem 0;
}

.benefit-card {
    background: white;
    padding: 2rem;
    border-left: 4px solid var(--secondary-color);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    height: 100%;
}

.benefit-card:hover {
    background: var(--primary-color);
    color: white;
}

.benefit-card:hover h5, .benefit-card:hover p {
    color: white; 
}

.benefit-card:hover i {
    color: var(--secondary-color);
}

.value-section-light {
  background: #ffffff;
}

.value-accent {
  position: absolute;
  width: 320px;
  height: 320px;
  top: -100px;
  right: -100px;
  background: rgba(245, 158, 11, 0.15);
  border-radius: 50%;
  filter: blur(90px);
}

.value-subtitle-light {
  color: #f59e0b;
  letter-spacing: 1px;
}

.value-title-light {
  color: #0f172a;
}

.value-text-light {
  color: #475569;
  font-size: 1rem;
  line-height: 1.75;
}

.value-list-light li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: #0f172a;
  font-weight: 500;
}

.value-list-light i {
  color: #f59e0b;
}

.value-image-wrapper-light {
  padding: 8px;
  border-radius: 20px;
  background: linear-gradient(
    135deg,
    rgba(245, 158, 11, 0.8),
    rgba(245, 158, 11, 0.2)
  );
}

.value-image-wrapper-light img {
  border-radius: 14px;
  box-shadow: 0 25px 50px rgba(15, 23, 42, 0.15);
}

/* =========================================
   9. Branches Section
   ========================================= */
.branches-section {
  background: #f8fafc;
}

.branches-badge {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  padding: 6px 14px;
  font-weight: 700;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

.branch-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 28px 24px;
  height: 100%;
  text-align: center;
  border: 1px solid rgba(15, 23, 42, 0.08);
  transition: all 0.4s ease;
  position: relative;
}

.branch-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: #0f172a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.branch-card h5 {
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.branch-desc {
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 16px;
}

.branch-divider {
  width: 40px;
  height: 3px;
  background: #f59e0b;
  margin: 0 auto 16px;
  border-radius: 10px;
}

.branch-address {
  font-size: 0.85rem;
  color: #334155;
}

.branch-address i {
  color: #f59e0b;
  margin-right: 6px;
}

.branch-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.15);
  border-color: #f59e0b;
}

/* =========================================
   10. Footer
   ========================================= */
footer {
    background-color: var(--primary-color);
    color: #cbd5e1;
    padding-top: 4rem;
    padding-bottom: 2rem;
}

footer h5 {
    color: white;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

footer ul li {
    margin-bottom: 0.8rem;
}

footer a {
    color: #cbd5e1;
    text-decoration: none;
    transition: var(--transition);
}

footer a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.newsletter-input {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
}

.newsletter-input:focus {
    background: rgba(255,255,255,0.2);
    color: white;
    box-shadow: none;
    border-color: var(--secondary-color);
}

/* =========================================
   11. Media Queries (Mobile/Responsive)
   ========================================= */
@media (max-width: 991.98px) {
    .hero-section {
        padding-top: 140px; 
        background-attachment: scroll; 
        height: auto; 
        min-height: 90vh;
    }

    .navbar {
        top: 80px; 
    }

    .navbar-collapse {
        background-color: #000000; 
        padding: 1.5rem;
        margin-top: 1rem;
        border-radius: 8px;
        border: 1px solid rgba(255, 255, 255, 0.1); 
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    }

    .navbar-nav .nav-link {
        color: #ffffff !important;
        padding: 12px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        text-align: center;
    }

    .navbar-nav .nav-item:last-child .nav-link {
        border-bottom: none;
    }
    
    .service-hero {
        padding-top: 90px; 
        height: 350px;
    }
}

@media (max-width: 767.98px) {
    :root {
        --top-bar-height: 80px;
    }
    
    .glass-content {
        padding: 1.5rem !important;
        backdrop-filter: blur(5px); 
    }
    
    .hero-section {
        background-attachment: scroll; 
    }
}

@media (max-width: 576px) {
  .service-hero {
    padding-top: 100px;
    height: 300px;
  }

  .service-hero h1 {
    font-size: 2rem;
  }
}
@media (max-width: 767.98px) {
  
    .navbar-brand img {
        height: 50px; 
        width: auto; 
    }
    
    /* Optional: Adjust navbar padding if the logo shrinks */
    .navbar-brand {
        font-size: 1.4rem; /* Slightly smaller text if text is visible */
    }
}