body {
  box-sizing: border-box;
}

* {
  font-family: 'Plus Jakarta Sans', sans-serif;
}

html {
  scroll-behavior: smooth;
}

.gradient-hero {
  background: linear-gradient(135deg, #1e5499 0%, #3b82c4 50%, #5a9fd4 100%);
}

.gradient-msc {
  background: linear-gradient(135deg, #1e5499 0%, #3b82c4 100%);
}

.card-service {
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.card-service:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(30, 84, 153, 0.15);
}

.btn-primary {
  background: linear-gradient(135deg, #1e5499 0%, #3b82c4 100%);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(30, 84, 153, 0.35);
}

.btn-secondary {
  border: 2px solid #ffffff;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

.timeline-line {
  position: absolute;
  left: 20px;
  top: 40px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #1e5499, #7db8e8);
}

.timeline-dot {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #1e5499, #3b82c4);
  border: 4px solid #e8f4fc;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  position: relative;
}

.nav-link {
  position: relative;
  transition: all 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #1e5499;
  transition: width 0.3s ease;
}

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

.portfolio-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}

.portfolio-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12, 45, 94, 0.9), transparent 60%);
  z-index: 1;
}

.portfolio-filter-btn {
  background: #e8f4fc;
  color: #1e5499;
  border: 2px solid transparent;
}

.portfolio-filter-btn:hover {
  background: #d1e9f7;
  transform: translateY(-2px);
}

.portfolio-filter-btn.active {
  background: linear-gradient(135deg, #1e5499, #3b82c4);
  color: white;
  border-color: #1e5499;
}

.portfolio-image-item {
  transition: all 0.3s ease;
}

.portfolio-image-item.hidden {
  display: none;
}

.icon-box {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #e8f4fc, #ffffff);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(30, 84, 153, 0.1);
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #e8f4fc, #ffffff);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  color: #1e5499;
  margin-bottom: 16px;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.floating {
  animation: float 4s ease-in-out infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.9); opacity: 1; }
  100% { transform: scale(1.3); opacity: 0; }
}

.pulse-ring::before {
  content: '';
  position: absolute;
  inset: -8px;
  border: 2px solid #1e5499;
  border-radius: 50%;
  animation: pulse-ring 2s ease-out infinite;
}

.mobile-menu {
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.mobile-menu.open {
  transform: translateX(0);
}

.portfolio-image-item {
  position: relative;
}

/* Make navbar solid white on small screens so mobile menu isn't semi-transparent */
@media (max-width: 1024px) {
  #navbar {
    background-color: #ffffff !important;
    backdrop-filter: none !important;
  }

  #mobile-menu {
    background-color: #ffffff !important;
  }
}

/* Modal for image preview */
.img-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  z-index: 60;
}

.img-modal img {
  max-width: 95%;
  max-height: 90%;
  border-radius: 8px;
}
