:root {
  /* Brand Colors */
  --accent: #ff8a00;
  --accent-hover: #ff9f2e;
  --accent-2: #1bb2de;
  --accent-2-hover: #3fc5eb;

  /* Bright/Light Theme Colors */
  --deep: #ffffff;
  --deep-lighter: #f8f9fa;
  --surface: #ffffff;
  --surface-hover: #f1f3f5;
  --glass: rgba(255, 255, 255, 0.9);
  --border: #e9ecef;

  /* Text Colors */
  --text-primary: #212529;
  --text-secondary: #495057;
  --text-muted: #6c757d;

  /* Shadows & Effects */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 16px 32px rgba(0, 0, 0, 0.15);
  --glow-accent: 0 0 15px rgba(255, 138, 0, 0.2);
  --glow-accent-2: 0 0 15px rgba(27, 178, 222, 0.2);

  /* Spacing & Layout */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
}

/* Global Reset & Typography */
body {
  background: var(--deep-lighter);
  color: var(--text-primary);
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: 0.02em;
}

a {
  color: var(--accent-2);
  text-decoration: none;
  transition: 0.3s;
}

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

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

/* Navbar Styling */
#mainNav {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  transition: padding 0.3s ease, background-color 0.3s ease;
}

#mainNav.navbar-shrink {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  background-color: #000000 !important;
}

/* Dropdown Styling - Let Bootstrap handle display logic */
/* Dropdown Styling - Let Bootstrap handle display logic */
.dropdown-menu {
  display: none;
  /* Reset to hidden by default */
  background-color: #212529;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  padding: 0.5rem 0;
  z-index: 99999;
  min-width: 200px;
  /* Prevent animation glitch */
  transition: none !important;
  animation: none !important;
  height: auto !important;
  max-height: none !important;
  margin-top: 0;
}

.dropdown-menu.show,
.dropdown-toggle[aria-expanded="true"]+.dropdown-menu {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  max-height: none !important;
  /* Fix for 0px height issue */
  overflow: visible !important;
  /* ensure content isn't clipped */
}

/* Ensure dropdown list items are visible */
.dropdown-menu li,
.dropdown-menu a,
.dropdown-menu .dropdown-item {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.dropdown-item {
  display: block !important;
  color: #ffffff !important;
  /* Force white text */
  padding: 10px 20px !important;
  text-decoration: none !important;
  background-color: transparent !important;
  white-space: nowrap !important;
}

.dropdown-item:hover {
  background-color: rgba(255, 255, 255, 0.2) !important;
  color: #ff8a00 !important;
}

/* Masthead */
.masthead {
  padding-top: 10.5rem;
  padding-bottom: 6rem;
  text-align: center;
  color: #fff;
  position: relative;
  background-repeat: no-repeat;
  background-attachment: scroll;
  background-position: center center;
  background-size: cover;
}

.masthead::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6));
}

.masthead .container {
  position: relative;
  z-index: 1;
}

.masthead-subheading {
  font-size: 1.5rem;
  font-style: italic;
  line-height: 1.5rem;
  margin-bottom: 25px;
  font-family: "Roboto Slab", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

.masthead-heading {
  font-size: 3.25rem;
  font-weight: 700;
  line-height: 3.25rem;
  margin-bottom: 2rem;
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

/* Buttons */
.btn {
  border-radius: var(--radius-sm);
  font-weight: 600;
  padding: 10px 24px;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #ff6b00);
  border: none;
  box-shadow: 0 4px 15px rgba(255, 138, 0, 0.3);
  color: #fff;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 138, 0, 0.5);
  background: linear-gradient(135deg, #ff9f2e, #ff8a00);
}

.btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  color: #fff;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  transform: translateY(-2px);
  color: #fff;
}

.btn-xl {
  padding: 15px 32px;
  font-size: 1.1rem;
  border-radius: var(--radius-md);
}

/* Cards & Services */
.services_card,
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: var(--shadow-sm);
  height: 100%;
}

.services_card:hover,
.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
  border-color: var(--border);
}

.services_card_image {
  overflow: hidden;
  height: 240px;
}

.services_card_image img,
.card-img-top,
.img-portfolio {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.services_card:hover img,
.card:hover img,
.portfolio-item:hover img {
  /* transform: scale(1.05); Light zoom or none */
}

.card-body {
  padding: 1.5rem;
  background: #ffffff;
}

.section-heading {
  text-transform: uppercase;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
  color: var(--text-primary);
}

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

/* Portfolio */
.portfolio-item {
  position: relative;
  display: block;
  width: 100%;
  margin-bottom: 30px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: #ffffff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.portfolio-item .portfolio-hover {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: rgba(255, 138, 0, 0.9);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  pointer-events: none;
  /* Let clicks pass through if needed, but link wraps it */
}

/* Fix for hover blocking link - actually link wraps .portfolio-hover */

.portfolio-item:hover .portfolio-hover {
  opacity: 1;
}

.portfolio-caption {
  background-color: #ffffff;
  padding: 1.5rem;
  text-align: center;
  border-top: 1px solid var(--border);
}

.portfolio-caption-heading {
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 700;
}

.portfolio-caption-subheading {
  color: var(--text-muted);
}

/* Contact Section */
#contact .card {
  background: #ffffff;
  border: 1px solid var(--border);
}

#contact i {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Partners */
#partner img,
.partner-logo-container img {
  filter: none !important;
  opacity: 1 !important;
  transition: all 0.3s;
  max-width: 140px;
}

#partner img:hover {
  filter: grayscale(0%) opacity(1);
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0px);
  }
}

.hero-cta {
  animation: float 6s ease-in-out infinite;
}

/* Footer */
footer {
  color: var(--text-secondary);
}

/* Utilities */
.bg-light {
  background-color: var(--deep-lighter) !important;
}

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

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

.text-white {
  color: #fff !important;
}

/* Responsive */
@media (max-width: 992px) {
  .masthead {
    padding-top: 8rem;
  }

  .masthead-heading {
    font-size: 2.5rem;
  }
}