*,
*::before,
*::after {
box-sizing: border-box;
}

/* Page layout style */
body {
margin: 0;
font-family: Verdana, sans-serif;
font-size: 100%;
}

/* Mobile device layout */
@media (max-width : 768px) {
.portfolio-page .portfolio-grid {
display: grid;
grid-template-columns: 1fr;
justify-items: center;
gap: 20px;
width: auto;
max-width: 95vw;
padding: 10px;
margin: 10px auto;
border: 2px solid #003399;
box-sizing: border-box;
overflow: hidden;
}

.header-content {
flex-direction: column;
align-items: center;
text-align: center;
}

.header-text h1 {
font-size: 1.4rem;
width: 100%;
}

.portfolio-page .portfolio-grid figure {
width: 100%;
max-width: 100%;
max-height: 500px;
margin: 0;
padding: 10px;
overflow-y: auto;
border: 2px solid #003399;
box-sizing: border-box;
}

.portfolio-page .portfolio-grid figure img {
height: auto;
width: 100% !important;
object-fit: contain;
display: block;
}

main {
padding: 10px;
width: 100%;
box-sizing: border-box;
}

.flow-item,
.flow-item:nth-child(even) {
flex-direction: column !important;
align-items: center;
text-align: center;
}

.flow-text,
.flow-item figure {
width: 100%;
flex: none;
}

.flow-item figure {
margin-top: 20px;
}

.infobar {
background-color: #003399;
color: white;
text-align: center;
padding: 0.5em 1em;
}

.byline {
font-size: 0.9em;
margin: 0.2em 0;
display: block;
text-align: center;
}
.byline-rule {
margin: 0.5em auto;
width: 50%;
}

blockquote {
border-left: 4px solid #003399;
padding: 0.5em 1em;
background-color: #f9f9f9;  /* lighter for mobile screens */
font-size: 0.95em;
margin: 1em 0;
}
}

.portfolio-page .portfolio-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 20px;
margin: 20px auto;
padding: 0;
max-width: 100%;
}

.portfolio-page .portfolio-grid figure {
margin: 0;
padding: 10px;
text-align: center;
display: flex;
flex-direction: column;
justify-content: flex-start;
background-color: #fff;
padding: 15px;
border-radius: 8px;
border: 1px solid #ddd;
align-items: center;
}

.portfolio-page .portfolio-grid figure img {
height: auto;
width: 100%;
object-fit: contain;
display: block;
max-height: 400px;
margin: 0 auto;
}

img {
max-width: 100%;
height: auto;
display: block;
}

/* ===== RESUME SECTION NAV (2x2 GRID) ===== */
main nav ul {
display: grid;
grid-template-columns: 1fr 1fr; /* two columns */
gap: 12px;
padding: 15px;
margin: 15px 0 20px 0;
list-style: none;

/* transparent panel behind the links */
background-color: rgba(255,255,255,0.85);
border-radius: 6px;
border: 1px solid #ddd;
}

main nav li {
margin: 0;
}

main nav a {
display: block;
text-align: center;
padding: 10px;
border-radius: 6px;
background-color: rgba(255,255,255,0.95);
border: 1px solid #ddd;
}

/* subtle hover effect */
main nav a:hover {
background-color: rgba(240,240,240,0.95);
}

/* NAVIGATION */
#Top {
background-color: #f2f2f2;
padding: 10px;
text-align: center;
}

#Top a {
margin: 15px;
text-decoration: none;
font-weight: bold;
color: #003399;
}

#Top a.active {
text-decoration: underline;
}

#Top a:hover {
text-decoration: underline;
}

/* HEADER BANNER */
header.banner img {
width: 100%;
max-height: 300px;
object-fit: cover;
display: block;
border-radius: 6px;
}

header.banner {
max-width: 1075px;
width: 100%;
margin: 0 auto;
padding: 0 15px;
box-sizing: border-box;
}

@keyframes slow-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.header-content img[src*="osi-logo.png"]:hover {
  animation: slow-spin 2s linear infinite;
}

/* MAIN CONTENT AREA - Background image lives here only */
main {
max-width: 1050px;
width: 100%;
margin: 10px auto;
background-image: url("images/shipping.jpg");
background-repeat: no-repeat;
background-position: top center;
background-size: cover;
padding: 15px;
margin-top: 10px;
border-radius: 6px;
box-sizing: border-box;
}

blockquote::first-letter {
font-size: 1.5em;
font-weight: bold;
font-family: Verdana, sans-serif;
}

.box {
width: 70%;
margin: 20px auto;
padding: 15px;
background-color: #f2f6fc;
border: 4px solid #003399;
text-align: center;
font-style: italic;
}

blockquote {
width: 75%;
margin: 25px auto;
padding: 20px;
background-color: #f4f7fb;
border: 5px solid #003399;
font-style: italic;
text-align: justify;
}

blockquote footer {
margin-top: 10px;
text-align: right;
font-style: normal;
font-weight: bold;
}

/* UNIFIED SECTION BOXES */
section {
width: 100%;
margin-top: 20px;
margin-left: 0px;
margin-right: 0px;
padding: 10px;
border: 1px solid #ddd;
border-left: 4px solid #003399;
border-radius: 6px;
background-color: rgba(255, 255, 255, 0.9);
box-sizing: border-box;
}

/* Nested sections (Personal/Business) inherit transparency */
section section {
margin-top: 15px;
border-left: 3px solid #666;
background-color: rgba(255, 255, 255, 0.5);
border: none;
}

/* HEADINGS - Styled to fit inside the boxes */
h1 {
text-transform: uppercase;
margin: 0;
font-size: 1.5rem;
display: block !important;
}

.infobar {
background-color: #003399;
color: white;
text-align: center;
padding: 8px 0;
font-size: 0.9em;
letter-spacing: 1px;
}

.byline {
font-size: 0.9em;
color: #666;
margin: 8px 0 5px 0;
}

.byline-rule {
width: 60%;
margin: 0;
border: none;
height: 2px;
background-color: #003399;
}

hr {
border: none;
height: 2px;
background-color: #003399;
}

abbr {
padding: 2px 6px;
border-radius: 4px;
color: #003399;
font-weight: bold;
}

.profile-pic {
width: 120px;
height: auto;
border-radius: 6px;
border: 1px solid #ccc;
transition: transform 0.3s ease, box-shadow 0.3s ease;
cursor: pointer;
}
.profile-pic:hover {
transform: scale(1.1);
box-shadow: 0 4px 15px rgba(0, 51, 153, 0.3);
filter: brightness(1.1);
}

address {
font-style: normal;
margin-top: 5px;
line-height: 1.4;
}

h2 {
color: #003399;
margin-top: 0; /* Ensures it sits at the top of the box */
letter-spacing: 1px;
font-size: 1.6em;
}

h3 {
color: darkred;
margin-top: 15px;
margin-bottom: 5px;
font-size: 1.2em;
}

.primary { color: darkblue; }
.accent { color: darkred; }

/* OVERLAY CONTAINER */
.header-content {
display: flex;
flex-direction: row;
align-items: flex-start;
flex-wrap: wrap;
gap: 20px;
background-color: rgba(255, 255, 255, 0.9);
padding: 20px;
border-radius: 6px;
border: 1px solid #ddd;
}

.header-text {
display: flex;
flex-direction: column;
text-align: left;
}

.header-content img {
width: 120px;
height: auto;
border-radius: 6px;
border: 1px solid #ddd;
padding: 20px;
}

.header-images {
display: flex;
flex-direction: column;
gap: 10px;
align-items: flex-start;
}

.header-rule {
width: 100%;
border: 3px solid #003399;
border-radius: 6px;
margin-top: 15px;
}

.summary-content {
display: flex;
flex-direction: row;
align-items: flex-start;
gap: 20px;
}

.summary-content .profile-pic {
width: 150px;
height: auto;
flex-shrink: 0;
}

@media (max-width: 480px) {
.summary-content {
flex-direction: column;
align-items: center;
text-align: center;
}
}

/* LISTS & TEXT */
ol {
list-style-type: upper-roman;
}

ul {
list-style-type: square;
margin-left: 25px;
padding: 0;
}

li {
margin-bottom: 6px;
line-height: 1.4;
}

.custom-bullets {
list-style-image: url("images/double_arrow.png")
}

.flow-item {
display: flex;
align-items: center;
gap: 20px;
margin-bottom: 40px;
}

.flow-item figure img {
max-width: 450px;
max-height: 250px;
width: 100%;
height: auto;
object-fit: contain;
display: block;
margin: 0 auto;
}

.flow-text,
.flow-item figure {
flex: 1;
width: 50%;
margin: 0;
}

.profile-pic {
width: 100%;
height: auto;
display: block;
}

.flow-item:nth-child(even) {
display: flex;
flex-direction: row-reverse;
}

section p {
line-height: 1.5;
margin-bottom: 10px;
font-size: 1em;
}

/* FOOTER */
footer {
margin-top: 20px;
padding: 15px;
text-align: center;
}

footer figure {
max-width: 180px;
margin: 20px auto;
padding: 10px;
background-color: #fff;
border: 1px solid #ddd;
border-radius: 8px;
}

footer figure img {
width: 100%;
border-radius: 6px;
}

.cbp-logo {
width: 120px;
display: block;
margin: 10px auto;
}

.copyright {
color: darkblue;
font-weight: bold;
font-size: 0.9em;
}

a {
color: #003399;
text-decoration: none;
font-weight: bold;
}

a:hover{
text-decoration: underline;
}

.resume-sections {
display: block;
margin-top: 20px;
}

/* Make sure each section fills its grid cell */
.resume-sections section {
width: 100%;
}

/* Container for truck movement */
.svg-truck {
display: inline-block;
cursor: pointer;
transition: transform 0.5s ease; /* smooth slide */
}

/* Move the whole truck forward on hover */
.svg-truck:hover {
transform: translateX(-30px); /* move left 15px */
}

/* Wheels rotation setup */
.wheel {
transform-origin: center; /* spin around their center */
transition: transform 0.5s linear;
}

/* Spin wheels when truck hovers */
.svg-truck:hover .wheel {
transform: rotate(360deg);
}