* {
    box-sizing: border-box;
}

body {
    max-width: 1000px;
    margin: auto;
    padding: 20px;
    background-image: url('images/nice-bg-1.jpg');
    background-repeat: repeat;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    color: #009;
    line-height: 1.6;
}

header {
    background-image: url('images/banner.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    padding-top: 25%; /* maintains aspect ratio for banner */
    position: relative;
    margin-bottom: 20px;
    border-radius: 8px;
}

nav {
    text-align: center;
    padding: 12px;
    background-color: rgba(0,0,0,0.4);
}

nav a,
header a {
    color: oldlace;
    font-size: 1.6em;
    text-decoration: none;
    margin: 0 15px;
    padding: 8px 14px;
    transition: all 0.4s ease;
    text-shadow: 0 0 4px rgba(0,0,0,0.9);
}

nav a:hover,
header a:hover {
    color: pink;
    transform: scale(1.08);
    text-shadow: 0 0 8px rgba(255,105,180,0.9);
    box-shadow: 0 4px 15px rgba(255,105,180,0.6);
}

nav a.current,
nav a.selected,
header a.current,
header a.selected {
    color: white;
    background-color: #039;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0,0,153,0.7);
}

h1 {
    color: #003366;
    font-family: 'Trebuchet MS', Verdana, sans-serif;
    text-align: center;
    margin: 25px 0;
    font-size: 2.4em;
}

h2 {
    color: #006;
    font-family: Verdana, sans-serif;
    margin-top: 1.8em;
}

main {
    background-color: #FFC;
    padding: 25px;
    margin: 20px 0;
    border-radius: 10px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 15px auto;
}

figcaption {
    text-align: center;
    font-style: italic;
    color: #555;
    margin-top: 8px;
}

footer {
    background-color: indigo;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    border-radius: 8px 8px 0 0;
}

footer a {
    color: #FFD;
    text-decoration: underline;
}

.important {
    color: crimson;
}

.box {
    border: 3px solid #039;
    padding: 18px;
    margin: 25px auto;
    background-color: rgba(255,255,255,0.7);
    border-radius: 8px;
    max-width: 90%;
}


.infobar {
    background: linear-gradient(90deg, #003366, #006699, #003366);
    background-size: 200% 200%;
    color: #f0f8ff;
    text-align: center;
    padding: 14px;
    font-size: 1.4em;
    font-weight: bold;
    margin: 30px 0;
    border-radius: 10px;
    animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

blockquote {
    text-align: justify;
    margin: 30px 10%;
    font-size: 1.1em;
    padding: 0 20px;
    border-left: 5px solid #039;
}

blockquote:first-letter {
    font-size: 3.2em;
    font-weight: bold;
    color: #006;
    float: left;
    margin: 0 10px 0 0;
    line-height: 0.8;
}


ul.image-bullets {
    list-style-image: url('images/arrow.png');   
    padding-left: 40px;
}

ul.image-bullets li {
    margin-bottom: 12px;
}

hr.styled {
    width: 75%;
    height: 5px;
    border: none;
    background: linear-gradient(to right, transparent, #039, transparent);
    border-radius: 8px;
    margin: 20px auto;
}

.hover-lift {
    transition: all 0.35s ease;
}

.hover-lift:hover {
    transform: translateY(-6px) scale(1.04);
    box-shadow: 0 12px 25px rgba(0,0,0,0.25), 0 0 20px rgba(0,51,153,0.4);
}

@media (max-width: 768px) {
    nav a,
    header a {
        display: block;
        margin: 10px 0;
        font-size: 1.5em;
    }
    .resume-columns {
        flex-direction: column;
    }
}


table.contact-table {
    width: 85%;
    max-width: 700px;
    margin: 30px auto;
    border: 4px solid #003399;
    border-collapse: collapse;
    background-color: rgba(255,255,255,0.85);
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

table.contact-table th {
    background-color: #003366;
    color: oldlace;
    padding: 18px;
    font-size: 1.5em;
    text-align: center;
}

table.contact-table td {
    padding: 14px 18px;
    border: 1px solid #039;
    vertical-align: top;
}

table.contact-table .label {
    text-align: right;
    width: 38%;
    font-weight: bold;
    color: #006;
    background-color: #f0f8ff;
}

table.contact-table td:last-child {
    width: 62%;
    color: #333;
}


.required {
    color: crimson;
    font-weight: bold;
}


@media (max-width: 768px) {
    table.contact-table {
        width: 95%;
    }
    
    table.contact-table .label {
        text-align: left;
    }
}






