:root {
  --primary: #235563 !important;
}

body {
  height: 100vh;
}

body {
  font-family: "Lato", sans-serif;
  color: #333;
  font-size: 14px;
}

h1,
h2,
h3,
h4,
h5,
.navbar-brand {
  font-family: "Oswald", sans-serif;
  letter-spacing: 1px;
}

.navbar {
  background-color: #f8f8f8;
  border-bottom: 2px solid #ccc;
}

.navbar-brand {
  font-weight: 600;
  font-size: 14px;
  color: var(--primary) !important;
}

.nav-link {
  text-transform: uppercase;
  text-decoration: none;
  font-size: 14px !important;
  letter-spacing: 1px;
  font-size: 700 !important;
}

.nav-link:hover {
  text-decoration: underline;
}

.nav-link {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: var(--primary) !important;
}
.nav-link:hover {
  color: var(--primary) !important;
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* NAV */
nav {
  justify-content: space-between;
  border-bottom: 2px solid #1f4d4f;
}

nav a {
  margin-left: 20px;
  text-decoration: none;
  color: black;
  position: relative;
}

/* Update this line to exclude the logo */
nav a:not(.navbar-brand):hover::after {
  width: 100%;
}

/* Also update the base rule so the line doesn't exist at all for the logo */
nav a:not(.navbar-brand)::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: #1f4d4f;
  transition: 0.3s;
}

a {
  text-decoration: none !important;
}

.btn-primary {
  background-color: #235563 !important;
  border-color: #232323 !important;
}

.btn-outline-dark {
  border-color: #235563 !important;
  color: #235563 !important;
}
.btn-outline-dark:hover {
  background-color: #235563 !important;
  color: #ffffff !important;
}
.badge {
  background-color: var(--primary) !important;
}
.progress-bar {
  background-color: var(--primary) !important;
}

.hero-title {
  font-family: "Oswald", sans-serif;
  font-size: 58px;
  color: var(--primary);
}

header p {
  font-size: 16px !important;
  max-width: 400px;
}

#about p {
  font-size: 14px;
  line-height: 1.6;
}

section h2 {
  font-family: "Oswald", sans-serif;
  font-size: 20px;
  text-align: center;
  margin-bottom: 40px;
}

.progress {
  height: 17px;
  background-color: #ddd;
  border-radius: 10px;
}

.progress-bar {
  background-color: var(--primary);
  border-radius: 10px;
}

medium {
  display: block;
  margin-bottom: 5px;
}

.hero-section {
  padding: 80px 0;
}

.hero-section .row {
  align-items: center;
}

section {
  padding-top: 100px;
  padding-bottom: 100px;
}

#about p {
  text-align: left;
}

body {
  margin: 0;
  background: #f5f5f5;
}

/* SECTIONS */
.section {
  padding: 60px 20px;
}

.section.light {
  background: #eaeaea;
}

h2 {
  margin-bottom: 10px;
}

.subtext {
  color: gray;
  margin-bottom: 30px;
}

/* CONTACT FORM */
.contact-form {
  max-width: 400px;
  margin: auto;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-bottom: 15px;
  padding: 10px;
  border: 1px solid #ccc;
}

.contact-form button {
  width: 100%;
  padding: 10px;
  background: #1f4d4f;
  color: white;
  border: none;
}

/* PORTFOLIO GRID */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  padding: 20px;
}

.project-card img {
  width: 100%;
}

.project-card h4 {
  margin-top: 10px;
}

.about-content p {
  line-height: 1.8; /* Improves readability significantly */
  margin-bottom: 1.2rem;
}

/* Portfolio Grid Styling */
.portfolio-item {
  transition: transform 0.3s ease;
  cursor: pointer;
  background-color: #f8f9fa;
}

.portfolio-item:hover {
  transform: translateY(-5px); /* Subtle lift effect */
}

/* The Overlay - Hidden by default */
.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(35, 85, 99, 0.9);
  color: white;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Show Overlay on Hover */
.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

/* Styling the Software Badge inside the hover */
.portfolio-overlay .badge {
  font-family: "Oswald", sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Styling the Form Labels and Inputs */
.form-control:focus {
  border-color: #000000;
  box-shadow: 0 0 0 0.25rem rgba(42, 82, 152, 0.1);
}

.form-floating > label {
  color: #6c757d;
}

/* Feature Icons Styling */
.feature {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 3rem;
  width: 3rem;
  font-size: 1.25rem;
}

/* Rounded circles for social buttons */
.btn-outline-dark.rounded-circle {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
}

h5 {
  color: #235563;
}

.feature.bg-primary {
  background-color: #235563 !important;
  background-image: none !important;
}

/* Optional: If you want a subtle hover effect on the icons */
.feature.bg-primary:hover {
  background-color: #1a404a !important;
  transition: background-color 0.3s ease;
}

body {
  padding-top: 80px; /* Adjust this number based on your navbar height */
}

/* Color Brand Variable */
.brand-text {
  color: #235563 !important;
}

/* Portfolio Item Styling */
.portfolio-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3; /* Matches your 1200x900 Photoshop files */
  object-fit: cover;
  display: block;
}

/* The Hover Overlay */
.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(35, 85, 99, 0.9); /* Your teal with opacity */
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  text-align: center;
}

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

.portfolio-item:hover {
  transform: translateY(-5px);
  transition: transform 0.3s ease;
}

/* Body Padding for Fixed Nav */
body {
  padding-top: 100px;
}

/* Styling the Software Badge inside the hover overlay */
.portfolio-overlay .badge {
  background-color: #ffffff !important; /* White background */
  color: #235563 !important; /* Your brand teal text */
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 8px 16px; /* Gives it a nice 'button' shape */
  font-size: 0.75rem;
  font-weight: 700;
}

/* Optional: Subtle hover effect for the badge itself */
.portfolio-overlay .badge:hover {
  background-color: #f8f9fa !important; /* Light grey on hover */
  transform: scale(1.05);
  transition: all 0.2s ease;
}

footer ul {
  padding-left: 0;
}

footer .list-inline-item {
  margin: 0 15px; /* Give social icons room to breathe on touch screens */
}

.splash {
  background-size: cover;
  background-position: center;
  min-height: 60vh;
  padding: 60px 0;
}
.portfolio-item {
  cursor: pointer;
}

.portfolio-overlay .badge {
  white-space: normal; /* Allows text to wrap to the next line */
  display: inline-block; /* Ensures the badge behaves like a block for wrapping */
  line-height: 1.4; /* Adds a little breathing room between lines */
  max-width: 80%; /* Prevents the badge from hitting the very edge */
  margin-top: 5px; /* Optional: space between the paragraph and the badge */
}

.video-button {
  display: inline-block; /* Keeps the button on one line */
  background-color: #235563; /* Your dark teal color */
  color: #ffffff !important; /* Force text to be white */
  padding: 12px 24px;
  border-radius: 10px;
  text-decoration: none !important;
  font-weight: bold;
  margin-bottom: 25px;
  line-height: 1.5; /* Gives the text room */
  vertical-align: middle;
}

@media (max-width: 768px) {
  .splash h1 {
    font-size: 2.5rem; /* Slightly smaller for mobile */
  }
}

/* Tablet and Mobile Card Adjustments */
@media (max-width: 768px) {
  .card {
    margin: 10px 0 !important; /* Reduce side margins so cards fit the screen width */
  }

  section {
    padding-top: 50px; /* Reduce large gaps on mobile */
    padding-bottom: 50px;
  }
}
