:root {
  --gold: #cda85d;
  --navy: #243e74;
  --light-navy: #2f4d8a;
  --light-gray: #f8f9fa;
  --medium-gray: #e9ecef;
  --dark-gray: #495057;
  --border-radius: 0.375rem;
}
body {
  color: #333;
  background-color: white;
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
}
section {
  min-height: auto;
  padding: 6rem 0;
}
.hero {
  background: linear-gradient(rgba(36, 62, 116, 0.85), rgba(36, 62, 116, 0.85)), url('https://www.verkplan.is/img/20210728_124042_2.jpg') no-repeat center center;
  background-size: cover;
  color: white;
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding-top: 0;
  padding-bottom: 0;
}
.hero .container {
  margin-top: -15vh;
}
.solutions {
  background-color: white;
  min-height: 80vh;
}
.news {
  background-color: white;
}
.about {
  background-color: var(--light-gray);
}
.contact {
  background: linear-gradient(rgba(36, 62, 116, 0.7), rgba(36, 62, 116, 0.85)), url('https://www.verkplan.is/img/20210801_162343_2.jpg') no-repeat center center;
  background-size: cover;
  color: white;
  position: relative;
  min-height: 80vh;
}
.navbar {
  transition: all 0.3s ease;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  background-color: transparent;
}
.navbar.scrolled {
  background-color: var(--navy) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.card {
  transition: box-shadow 0.3s ease;
  margin-bottom: 0;
  border-color: var(--medium-gray);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.news-item {
  border-bottom: 1px solid var(--medium-gray);
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
}
.news-item:last-child {
  border-bottom: none;
}
.btn-primary {
  background-color: var(--navy);
  border-color: var(--navy);
  padding: 0.6rem 1.5rem;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
  font-weight: 500;
}
.btn-primary:hover {
  background-color: var(--light-navy);
  border-color: var(--light-navy);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.btn-outline-primary {
  color: var(--navy);
  border-color: var(--navy);
  padding: 0.6rem 1.5rem;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
  font-weight: 500;
}
.btn-outline-primary:hover {
  background-color: var(--navy);
  border-color: var(--navy);
  color: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.btn-outline-light:hover {
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
footer {
  background-color: var(--navy);
  color: white;
  padding: 3rem 0 2rem;
}
.contact .card {
  background-color: rgba(255, 255, 255, 0.95);
  border: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.card-title {
  color: var(--navy);
  font-weight: 600;
  margin-bottom: 1rem;
}
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
}
.display-4, .display-5 {
  color: var(--navy);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.hero .display-4 {
  color: white;
}
.contact .display-5 {
  color: white;
}
.text-gold {
  color: var(--gold);
}
.text-navy {
  color: var(--navy);
}
.bg-gold {
  background-color: var(--gold);
}
.bg-navy {
  background-color: var(--navy);
}
.navbar-brand {
  color: var(--gold) !important;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}
.form-control {
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
  border-color: var(--medium-gray);
}
.form-control:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 0.25rem rgba(205, 168, 93, 0.15);
}
.row.g-4 {
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 1.5rem;
}
.shadow-sm {
  box-shadow: 0 .125rem .25rem rgba(0,0,0,.05)!important;
}
/* Fix for navbar spacing */
.navbar + section {
  padding-top: calc(76px + 5rem);
}
.hero {
  padding-top: 76px;
}
/* Card styles for About section */
.about .card {
  background-color: white;
}
/* Contact form enhancements */
.contact-info-item {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}
.contact-info-item i {
  width: 40px;
  height: 40px;
  background-color: var(--gold);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  font-size: 1.2rem;
}
.contact-info-text {
  flex: 1;
}
.contact-info-text h5 {
  margin-bottom: 0.25rem;
  color: white;
}
.contact-info-text p {
  margin-bottom: 0;
}
.contact-form-wrapper {
  position: relative;
  z-index: 1;
}
.section-title-line {
  display: inline-block;
  width: 50px;
  height: 3px;
  background-color: var(--gold);
  margin-bottom: 1rem;
}
/* Animation for scroll reveal */
.fade-in {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Responsive adjustments */
@media (max-width: 768px) {
  .hero {
      font-size: calc(1rem - 2px);
  }
  .contact-info {
      margin-bottom: 2rem;
  }
  .hero .btn {
      margin-right: 0 !important;
      margin-left: 0 !important;
      display: block;
      width: 100%;
  }
  .employee-img-container {
      margin: 0 auto 1rem auto !important;
      float: none !important;
  }
  /* Hide scroll-logo on mobile */
  .scroll-logo {
      display: none;
  }
}
.navbar-logo {
  height: 40px;
  width: auto;
  transition: all 0.3s ease;
}
.navbar.scrolled .navbar-logo {
  height: 32px;
}
/* Enhanced nav-item visibility */
.navbar-dark .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.95) !important;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
}
.navbar-dark .navbar-nav .nav-link:hover {
  color: var(--gold) !important;
}
/* Consistent button styling */
.hero-btn {
  padding: 0.6rem 1.5rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: var(--border-radius);
  font-weight: 500;
  min-width: 150px;
  text-align: center;
}

/* Employee image styling */
.employee-img-container {
  width: 100px;
  height: 155px;
  border-radius: var(--border-radius);
  border: 1px solid var(--medium-gray);
  overflow: hidden;
  float: right;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.employee-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card-content {
  overflow: hidden;
}

.strategy-item {
  display: flex;
  align-items: start;
  margin-bottom: 1rem;
}

.strategy-icon {
  flex-shrink: 0;
  margin-right: 1rem;
  margin-top: 0.25rem;
  opacity: 0.85;
}

.strategy-text {
  flex-grow: 1;
}

.hero-fade-in {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 1.2s ease, transform 1.2s ease;
}

.hero-fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Animated logo for hero section */
.scroll-logo {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  width: 40px;
  height: 40px;
  opacity: 0.8;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
      transform: translateY(0) translateX(-50%);
  }
  40% {
      transform: translateY(-15px) translateX(-50%);
  }
  60% {
      transform: translateY(-8px) translateX(-50%);
  }
}

/* Subtle text shadow for hero text */
.hero h1, .hero p {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Gradient overlay animation for hero */
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(36, 62, 116, 0.05) 0%, rgba(205, 168, 93, 0.05) 100%);
  opacity: 0.4;
  z-index: 1;
  animation: gradientShift 10s ease infinite;
}

@keyframes gradientShift {
  0% {
      background-position: 0% 50%;
  }
  50% {
      background-position: 100% 50%;
  }
  100% {
      background-position: 0% 50%;
  }
}

.hero .container {
  position: relative;
  z-index: 2;
}

.navbar-toggler {
  border: none;
  padding: 0.25rem;
  outline: none;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* Logo banner section */
.logo-banner {
  background-color: var(--light-gray);
  padding: 2rem 0;
  border-top: 1px solid var(--light-gray);
  border-bottom: 1px solid var(--light-gray);
}

.logo-banner .logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 3rem;
}

.logo-banner .logo-item {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 80px;
  width: 160px;
  transition: all 0.3s ease;
}

.logo-banner .logo-item img {
  max-height: 70%;
  max-width: 90%;
  object-fit: contain;
  opacity: 0.7;
  transition: all 0.3s ease;
  filter: brightness(0) saturate(100%) invert(22%) sepia(29%) saturate(1404%) hue-rotate(195deg) brightness(94%) contrast(87%);
}

.logo-banner .logo-item:hover img {
  filter: grayscale(0%);
  opacity: 0.9;
}

/* Logo banner title styling */
.logo-banner-title {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.logo-banner-title.visible {
  opacity: 1;
  transform: translateY(0);
}

.logo-banner-title p {
  color: var(--navy);
  opacity: 0.7;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* Contact button styling */
.contact-btn {
  padding: 0.9rem 1.8rem;
  font-size: 1.1rem;
  font-weight: 500;
  transition: all 0.3s ease;
  border-radius: var(--border-radius);
}

.contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.contact-btn i {
  margin-right: 0.5rem;
}

.logo-banner .logo-item a {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
}

@media (max-width: 768px) {
  .logo-banner .logo-item {
      height: 80px;
      width: 140px;
      margin-bottom: 1.5rem;
  }
  
  .logo-banner .logo-container {
      gap: 2rem;
  }

  .logo-banner .logo-item img {
      max-height: 80%;
      max-width: 80%;
  }
}

/* Footer link styling */
footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.2s ease;
}

footer a:hover {
  color: var(--gold);
  text-decoration: none;
}

footer h5 {
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  font-weight: 600;
}

footer .list-unstyled li {
  margin-bottom: 0.5rem;
}

/* Social media icons */
footer .social-icons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

footer .social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

footer .social-icons a:hover {
  background-color: var(--gold);
  color: white;
  transform: translateY(-2px);
}

/* Button styling */
.btn-sm {
  font-size: 0.85rem;
  padding: 0.4rem 0.8rem;
}

/* Card body padding */
.card-body {
  padding: 1.75rem;
}

/* Lead text */
.lead {
  font-weight: 400;
  line-height: 1.6;
}

/* Text muted */
.text-muted {
  color: var(--dark-gray) !important;
}

/* Link styling for news section */
.news-link {
  color: var(--navy);
  text-decoration: none;
  transition: color 0.2s ease;
}

.news-link:hover {
  color: var(--gold);
  text-decoration: underline;
}

/* Simple gold button with click surprise */
.btn-gold {
  
  border-color: var(--gold);
  color: var(--gold);
  font-weight: 600;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-gold:hover {
  background-color: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}

.btn-gold:active {
  transform: scale(0.97);
}
