html {
    scroll-behavior: smooth;
}

body {
    background-color :#fdfdfd;
    /* color: #fdfdfd; */
    padding-left : 5%;
    padding-right: 5%;
}

h1, h2, h3, h4, h5, h6 {
    color: #1B4965;
    font-family: 'Poppins', sans-serif;
}

a {
    color: #1B4965;
    text-decoration: None;
}

a:hover {
    color: #5FA8D3;
}

.container-fluid{
    border : black;
}

.list-unstyled li {
    list-style-type: none;
}


.links {
  flex-wrap: wrap; /* wraps items on small screens */
  gap: 1rem;       /* space between items */
}

.link-item {
  display: flex;
  align-items: center;
  padding: 0.4rem 0.8rem;
  border-radius: 0.5rem;
  background-color: #f1f5f9; /* light gray background */
  color: #1B4965;
  text-decoration: none;
  transition: transform 0.2s, background-color 0.2s;
}

.link-item i {
  font-size: 1.1rem;
}

.link-item:hover {
  background-color: #1B4965;
  color: #ffffff;
  transform: translateY(-2px);
}


.bi {
    color: #1B4965;
    padding-right:10px;
}

.highlight {
    background-color: #1B4965;
    color: #FFFFFF;
}

.navbar{
    background-color: #fdfdfd;
    width: 100%;
}
.navbar a {
    color: #1B4965; 
}

.navbar-brand{
    color : #5FA8D3;
}

/* Navbar toggle icon visibility (Bootstrap sometimes needs this override) */
.navbar-toggler {
  border: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(27,73,101, 0.8)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Center dropdown links on small screens */
@media (max-width: 991px) {
  .navbar-collapse {
    background-color: #fdfdfd;
    padding: 10px 0;
  }

  .navbar-nav .nav-link {
    text-align: center;
    padding: 10px;
    color: #1B4965;
  }
}


#headshot{
    /* border-radius : 15%; */
    float :inline-end;
    width: 100%;
    height: auto;
    /* border-color : #1B4965;
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.5) */
}

#contact_headshot{
    border-radius : 15%;
    float :inline-end;
    width: 75%;
    height: auto;
    border-color : #1B4965;
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.5)
}

#aboutme{
    padding-top : 5%;
}

#experience{
    padding-top : 5%;
    padding-bottom: 5%;
    background-color : #fdfdfd;
}

#projects{
    padding-top : 5%;
    padding-bottom: 5%;
    background-color : #fdfdfd;
}

#contact{
    padding-top : 5%;
    padding-bottom: 5%;
    background-color : #fdfdfd;
    border-bottom: 5px solid #1B4965;
    transition: transform 0.3s, box-shadow 0.3s;
    align-items: left;
    justify-content : left;
}



#bigtext{
    font-family: 'Poppins', sans-serif;
    font-size : 75px;
}

#subtext{
    font-family: 'Open Sans', sans-serif;
    font-size : large;
}

.row {
    display: flex;
    height: auto;
}

.card-header{
    background-color : #1B4965;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    color: white;
}

.card-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 550;
    margin-bottom: 1rem;
}

.card-text {
    font-family: 'Open Sans', sans-serif;
    color: #6c757d;
    flex-grow: 1;
}


/* Button Styles */
.btn-primary {
    background-color: #1B4965;
    border-color: #1B4965;
    padding-top : 5px;
}
  
.btn-primary:hover {
    background-color: #0056b3;
    border-color: #004085;
}

.label{
    padding-bottom : 5px;
    padding-top : 5px;
}

#footer {
    margin-top: 20px;
    background-color: #fdfdfd;
    font-family: 'Poppins', sans-serif;
    transition: transform 0.3s, box-shadow 0.3s;
}

/* Project Section */
#projects {
  background-color: #fdfdfd;
  padding: 60px 20px;
}

#projects h3 {
  font-weight: 600;
  font-size: 1.8rem;
  margin-bottom: 40px;
  color: #1b3d6d; /* your existing blue tone */
  text-align: center;
}

/* Card Styling */
#workcard {
  border: none;
  border-radius: 16px;
  background-color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}

#workcard:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* Card Image */
#workcard .card-img-top {
  height: 180px;
  object-fit: cover;
  border-bottom: 1px solid #e9ecef;
}

/* Card Body */
#workcard .card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

#workcard .card-header {
  font-weight: 600;
  color: #1b3d6d;
  background: none;
  border: none;
  padding: 0;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

#workcard .card-title {
  font-weight: 500;
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 8px;
}

#workcard ul {
  padding-left: 0;
  margin-bottom: 10px;
}

#workcard li {
  font-size: 0.85rem;
  color: #007bff;
  display: inline-block;
  margin-right: 8px;
}

#workcard p {
  font-size: 0.9rem;
  color: #444;
  margin-bottom: 0;
}


/*Experience Cards*/
/* Professional Experience Cards - match project card style */
/* Professional Experience Cards */
.experience-row {
  display: flex;
  flex-wrap: wrap; /* ✅ allows cards to wrap on smaller screens */
  gap: 20px;
  justify-content: center;
}

.experience-card {
  flex: 1 1 calc(33.333% - 20px); /* ✅ 3 per row on desktop */
  max-width: 400px;
  border: none;
  border-radius: 16px;
  background-color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  /* transition: transform 0.25s ease, box-shadow 0.25s ease; */
  overflow: hidden;
}
/*
.experience-card:hover {
    /* transform: scale(1.03); 
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
*/

.experience-card .card-img-top {
    width: 100%;         /* fill container width */
    height: 180px;       /* fixed height so cards align */
    object-fit: contain;  /* fit entire image without cropping */
    object-position: center; /* center image if aspect ratio differs */
}

.experience-card .card-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.experience-card .card-header {
  font-weight: 600;
  color: #1b3d6d;
  background: none;
  border: none;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.experience-card .card-title {
  font-weight: 500;
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 8px;
}

.experience-card p {
  font-size: 0.9rem;
  color: #444;
  margin-bottom: 0;
}

.experience-card ul {
    padding-left: 0;
    margin-bottom: 10px;
}

.experience-card li {
    font-size: 0.85rem;
    color: #007bff;
    display: inline-block;
    margin-right: 8px;
}

#experience h3{
    font-weight: 600;
    font-size: 1.8rem;
    margin-bottom: 40px;
    color: #1b3d6d; /* your existing blue tone */
    text-align: center;
}

.image-wrapper {
    width: 55%;
    height: auto;       /* let image determine height */
    overflow: hidden;   /* ensures nothing escapes */
    margin: 0 auto;     /* center the wrapper */
}
.image-wrapper img {
    width: 100%;
    height: auto;
    object-fit: contain;
}


/* ---------- RESPONSIVE ADJUSTMENTS ---------- */

/* 2 cards per row on tablets */
@media (max-width: 992px) {
  .experience-card {
    flex: 1 1 calc(50% - 20px);
  }
}

/* 1 card per row on mobile */
@media (max-width: 768px) {
  .experience-card {
    flex: 1 1 100%;
  }

  .experience-card .card-img-top {
    height: 150px;
  }

  #experience h3 {
    font-size: 1.5rem;
  }
}

/* Grid Spacing */
#projects .row {
  row-gap: 30px;
}


/*****Send Email / Contact ******/
.contact-form input, 
.contact-form textarea {
  border-radius: 0.5rem;
  border: 1px solid #ccc;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form input:focus, 
.contact-form textarea:focus {
  border-color: #1B4965;
  box-shadow: 0 0 0 0.1rem rgba(27, 73, 101, 0.25);
}

.contact-form button:hover {
  background-color: #163850;
}
.contact-form button {
  background-color: #1B4965;
  border-color: #1B4965;
  transition: background-color 0.2s, border-color 0.2s;
}
@media (max-width: 768px) {
  .contact-wrapper {
    flex-direction: column !important;
    text-align: center;
  }

  .contact-image {
    max-width: 500px;
    margin-bottom: 1rem;
  }
}
