/* Variables */
:root {
    --peg-blue: #003B5C;   /* Deep Pacific Blue */
    --peg-accent: #78BE20; /* Environmental Green */
    --peg-dark: #1a1a1a;
}

/* General Overrides */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
}

/* Custom Colors */
.bg-peg-blue {
    background-color: var(--peg-blue) !important;
}

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

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

.bg-peg-accent {
    background-color: var(--peg-accent) !important;
}

.bg-peg-dark {
    background-color: var(--peg-dark) !important;
}

/* Top Bar */
.top-bar-icon {
    color: var(--peg-accent);
    margin-right: 0.25rem;
}

/* Navigation */
.nav-link {
    font-weight: 500;
    color: var(--peg-dark);
    transition: color 0.2s;
}

.nav-link:hover, .nav-link.active {
    color: var(--peg-blue) !important;
}

/* Buttons */
.btn-peg {
    background-color: var(--peg-accent);
    color: #fff;
    border: 2px solid var(--peg-accent);
    padding: 0.75rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-peg:hover {
    background-color: transparent;
    color: var(--peg-accent);
    transform: translateY(-2px);
}

/* Hero Section */
.hero-bg {
    background-color: var(--peg-blue);
    /* Gradient overlay + Placeholder Image */
    background-image: linear-gradient(rgba(0, 59, 92, 0.5), rgba(0, 59, 92, 0.3)), url('/assets/images/hero2.gif');
    background-size: cover;
    background-position: center top;
    padding: 8rem 0;
}

.text-shadow {
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.opacity-90 {
    opacity: 0.9;
}

/* Services */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15) !important;
}

/* Section Titles */
.section-title {
    color: var(--peg-blue);
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 15px;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 4px;
    width: 60px;
    background-color: var(--peg-accent);
    border-radius: 2px;
}

/* SPA View Transitions */
.spa-view {
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Image Placeholder */
.img-placeholder {
    background-color: #f8f9fa;
    color: var(--peg-blue);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed #ced4da;
}

.img-placeholder-banner {
    aspect-ratio: 2 / 1;
    max-height: 400px;
}

/* Form Styles */
.form-control, .form-select {
    background-color: #f8f9fa;
    border: 1px solid #ced4da;
}

.form-control:focus, .form-select:focus {
    background-color: #fff;
    border-color: var(--peg-blue);
    box-shadow: 0 0 0 0.25rem rgba(0, 59, 92, 0.25);
}
/* Footer Link Styling */
.netwerx-credit a {
  /* Multi-color gradient to mimic brand letter coloring */
  background: linear-gradient(90deg, #4285F4, #EA4335, #FBBC05, #34A853);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
  font-weight: 800;
  display: inline-block;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.netwerx-credit a:hover {
  background-position: 100% 0; /* Shifts gradient on hover for a shimmering effect */
  transform: scale(1.1) rotate(-3deg);
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.4));
}