/* =========================================================
   MIGHT BE TECH - EXTERNAL CASCADING STYLE SHEET
   Shared by all pages
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background-color: #07111f;
    color: #dce9f5;
    line-height: 1.6;
}

header,
nav,
main,
footer {
    width: 100%;
}

header {
    background: linear-gradient(135deg, #06101d, #102d47, #07111f);
    color: white;
    text-align: center;
    padding: 32px 20px 38px;
    border-bottom: 2px solid #2389c9;
    box-shadow: 0 5px 25px rgba(0, 174, 255, 0.25);
}

header img {
    display: block;
    width: 170px;
    height: 170px;
    object-fit: cover;
    margin: 0 auto 12px;
    border-radius: 50%;
}

header h1 {
    margin: 0;
    font-size: clamp(2.2rem, 6vw, 3.4rem);
    letter-spacing: 5px;
    text-transform: uppercase;
    text-shadow: 0 0 5px #8ed0ff, 0 0 15px #2389c9, 0 0 30px #0066cc;
}

header h1 span {
    color: #8ed0ff;
}

header p {
    margin: 10px 0 0;
}

.tagline {
    font-size: 1.2em;
    color: #8ed0ff;
    letter-spacing: 3px;
    font-weight: bold;
}

.subtitle {
    font-size: 16px;
    color: #b8cfe0;
}

nav {
    background-color: #0b1c2d;
    padding: 12px 10px;
    border-bottom: 1px solid #1d4d70;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav ul {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}

nav li {
    list-style: none;
}

nav a {
    display: block;
    padding: 7px 11px;
    border: 1px solid transparent;
    border-radius: 5px;
    color: #8ed0ff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    transition: 0.3s;
}

nav a:hover,
nav a:focus,
nav a.active,
nav a.selected {
    color: white;
    background-color: #102d47;
    border-color: #4db8ff;
    text-shadow: 0 0 10px #2389c9;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 45px 25px;
}

h2,
h3 {
    color: #8ed0ff;
}

h2::before {
    content: "▸ ";
    color: #4db8ff;
}

p {
    color: #bfd0dc;
}

a {
    color: #8ed0ff;
}

a:hover,
a:focus {
    color: white;
}

section {
    background: linear-gradient(145deg, #0d2032, #091725);
    padding: 30px;
    margin-bottom: 25px;
    border-radius: 10px;
    border: 1px solid #1c405d;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);
}

section h2 {
    font-size: 1.8em;
    margin-top: 0;
    border-bottom: 1px solid #214b68;
    padding-bottom: 12px;
}

footer {
    background-color: #040b13;
    color: white;
    text-align: center;
    padding: 30px 20px;
    border-top: 1px solid #1d4d70;
}

footer p {
    margin: 7px;
    color: #8ca6b8;
}

footer b {
    color: #8ed0ff;
}

.footer-small {
    font-size: 14px;
}

/* Home page */
#welcome {
    text-align: center;
    margin-bottom: 45px;
}

.welcome h2 {
    font-size: clamp(2rem, 5vw, 2.7rem);
    color: white;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.welcome h2 span {
    color: #4db8ff;
}

.welcome-intro {
    max-width: 800px;
    margin: auto;
    color: #9db7ca;
    font-size: 1.1em;
    line-height: 1.8;
}

.welcome-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 35px;
}

.welcome-card {
    background: linear-gradient(145deg, #0e2236, #0a1827);
    padding: 28px;
    border: 1px solid #1d4d70;
    border-left: 4px solid #2389c9;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: 0.3s;
}

.welcome-card:hover {
    transform: translateY(-5px);
    border-color: #4db8ff;
    box-shadow: 0 8px 25px rgba(35, 137, 201, 0.25);
}

.welcome-card h3 {
    margin-top: 0;
    font-size: 1.35em;
}

.welcome-card p {
    color: #b7cad9;
    line-height: 1.8;
    margin-bottom: 0;
}

.tech-label {
    display: inline-block;
    background-color: #102d47;
    color: #8ed0ff;
    padding: 8px 14px;
    margin-top: 8px;
    border-radius: 5px;
    border: 1px solid #1e5b82;
    font-size: 14px;
}

.learning-box {
    background-color: #071827;
    padding: 18px;
    border-left: 5px solid #2389c9;
    border-radius: 5px;
    color: #8ed0ff;
    font-weight: bold;
    line-height: 2;
}

/* Resume */
#resume-header {
    text-align: center;
    margin-bottom: 30px;
}

#resume-header h2 {
    font-size: 2.3em;
    margin-bottom: 5px;
}

#resume-header p {
    margin: 4px 0;
}

#resume-contact {
    font-size: 0.95em;
}

.resume-section {
    margin-bottom: 22px;
}

.resume-section h3 {
    border-bottom: 1px solid #214b68;
    padding-bottom: 8px;
    margin-bottom: 12px;
}

.resume-item {
    margin-bottom: 24px;
}

.resume-item:last-child {
    margin-bottom: 0;
}

.resume-item h4 {
    margin-bottom: 4px;
    color: white;
}

.resume-item p {
    margin: 4px 0;
}

.resume-list {
    padding-left: 22px;
    color: #bfd0dc;
}

.resume-list li {
    margin-bottom: 7px;
}

.muted {
    color: #8ca6b8;
}

.button-link {
    display: inline-block;
    padding: 10px 18px;
    margin: 5px 8px 5px 0;
    background-color: #102d47;
    border: 1px solid #2389c9;
    border-radius: 5px;
    color: #8ed0ff;
    text-decoration: none;
    font-weight: bold;
}

.button-link:hover,
.button-link:focus {
    background-color: #1b4d70;
    color: white;
}

/* Portfolio */
.portfolio-intro {
    text-align: center;
}

.portfolio-intro p {
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.portfolio-card {
    min-width: 0;
    overflow: hidden;
    background: linear-gradient(145deg, #0d2032, #081521);
    border: 1px solid #1c405d;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
    transition: transform 0.3s, border-color 0.3s;
}

.portfolio-card:hover {
    transform: translateY(-4px);
    border-color: #4db8ff;
}

.portfolio-card img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 12 / 7;
    object-fit: contain;
    background-color: #050d17;
}

.portfolio-card-content {
    padding: 22px;
}

.portfolio-card h3 {
    margin-top: 0;
    margin-bottom: 8px;
}

.portfolio-card p {
    margin-bottom: 0;
}

.portfolio-tag {
    display: inline-block;
    margin-top: 15px;
    padding: 5px 9px;
    border: 1px solid #1e5b82;
    border-radius: 4px;
    background: #102d47;
    color: #8ed0ff;
    font-size: 0.82rem;
    font-weight: bold;
}

/* Contact */
#contact {
    background: linear-gradient(135deg, #102d47, #071725);
    color: white;
    text-align: center;
    border: 1px solid #2389c9;
}

#contact h2 {
    color: white;
    border-bottom: none;
}

#contact p {
    color: #c7dce9;
}

#profile-image {
    margin: 25px auto 0;
    display: inline-block;
    padding: 6px;
    border: 3px solid #8ed0ff;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(142, 208, 255, 0.5);
    background-color: white;
}

#profile-image img {
    display: block;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
}

#social {
    background-color: #0a1b2b;
}

/* Transcript */
.transcript-list,
.reference-list {
    padding-left: 24px;
    color: #dce9f5;
}

.transcript-list li,
.reference-list li {
    margin-bottom: 10px;
}

.reference-list {
    list-style-type: lower-roman;
}

.recommendation-list {
    list-style-image: url("images/list-bullet.png");
    padding-left: 24px;
    color: #dce9f5;
}

.recommendation-list li {
    margin-bottom: 10px;
}

.certifications dt {
    color: #8ed0ff;
    font-weight: bold;
    margin-top: 12px;
}

.certifications dd {
    margin-left: 20px;
    color: #bfd0dc;
}

.transcript-note {
    background-color: #071827;
    border-left: 5px solid #2389c9;
    padding: 15px 18px;
    margin-top: 15px;
}

/* Responsive design: full columns on desktop/tablet, one full column on smartphones */
@media (max-width: 767px) {
    header {
        padding: 25px 15px 30px;
    }

    header img {
        width: 130px;
        height: 130px;
    }

    .tagline {
        font-size: 0.95em;
        letter-spacing: 2px;
    }

    nav {
        position: static;
    }

    nav ul {
        display: grid;
        grid-template-columns: 1fr;
        gap: 5px;
    }

    nav a {
        text-align: center;
    }

    main {
        padding: 30px 15px;
    }

    .welcome-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    section {
        padding: 22px;
    }

    .portfolio-card img {
        aspect-ratio: 12 / 7;
    }
}

@media (min-width: 768px) {
    nav a {
        white-space: nowrap;
    }
}
