/* =========================================================
   GLOBAL RESET & BASE
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: white;
    background: url('images/techbg.webp') no-repeat center center fixed;
    background-size: cover;
    line-height: 1.6;
}

/* =========================================================
   WRAPPER & STRUCTURE
   ========================================================= */

#wrapper {
    width: min(90%, 1100px);
    margin: 0 auto;
    padding: 20px 20px 40px;
    background: rgba(10, 18, 30, 0.75);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
}

header {
    text-align: center;
    margin-bottom: 20px;
}

main {
    padding: 20px 0;
}

footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
    color: #dfeeff;
}

/* =========================================================
   BANNER / MASTHEAD
   ========================================================= */

.banner {
    text-align: center;
    padding: 30px 20px 10px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 12px;
    margin-bottom: 25px;
}

.banner h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3rem);
}

.banner p {
    margin: 10px 0 0;
    font-size: 1.1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9ad7ff;
}

/* =========================================================
   NAVIGATION (Clean, Symmetrical, Flexbox)
   ========================================================= */

nav {
    margin: 20px 0;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 12px;
}

nav li {
    display: flex;
}

nav a {
    display: inline-block;
    padding: 12px 18px;
    color: #e8f4ff;
    background: rgba(255,255,255,0.06);
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.15rem;
    font-weight: bold;
    transition: all 0.25s ease;
}

nav a:hover {
    color: #ffffff;
    background: rgba(0, 153, 255, 0.35);
    box-shadow: 0 0 12px rgba(0,153,255,0.45);
}

.selected {
    color: #ffffff;
    background: rgba(0,153,255,0.55);
    box-shadow: 0 0 14px rgba(0,153,255,0.55);
    border-radius: 8px;
}

/* =========================================================
   IMAGE STYLES
   ========================================================= */

.page-photo,
.resume-photo,
.portfolio-photo,
.medium-photo {
    width: 100%;
    max-width: 700px;
    border-radius: 10px;
    display: block;
    margin: 0 auto;
}

.resume-photo {
    max-width: 260px;
    border: 3px solid rgba(255,255,255,0.3);
    box-shadow: 0 8px 22px rgba(0,0,0,0.35);
}

.photo-caption {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    margin-top: 8px;
    font-style: italic;
}

/* =========================================================
   PORTFOLIO GRID
   ========================================================= */

.portfolio-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-top: 30px;
}

.portfolio-item {
    flex: 1 1 48%;
    background: rgba(255,255,255,0.05);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 0 12px rgba(0,0,0,0.3);
}

.portfolio-item img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.portfolio-item h2 {
    margin-top: 0;
    color: #9ad7ff;
    font-size: 1.4rem;
}

.portfolio-item p {
    margin-bottom: 0;
    color: #dfeeff;
}

@media (max-width: 768px) {
    .portfolio-item {
        flex: 1 1 100%;
    }
}

/* =========================================================
   RESUME PAGE
   ========================================================= */

.resume-name {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: #dff7ff;
}

.resume-address {
    text-align: center;
    margin-bottom: 20px;
    color: #edf6ff;
}

.resume-address a {
    color: #9ad7ff;
    text-decoration: none;
}

.intro {
    font-size: 1.6rem;
    font-weight: bold;
    color: #7ee0ff;
    margin-bottom: 8px;
}

.resume-columns {
    display: flex;
    gap: 20px;
}

.resume-left {
    width: 30%;
    padding: 15px;
    border-right: 2px solid rgba(255,255,255,0.2);
}

.resume-right {
    width: 70%;
    padding: 15px;
}

.section-title {
    color: #9ad7ff;
    margin-bottom: 12px;
    font-size: 1.7rem;
}

/* =========================================================
   FORMS
   ========================================================= */

label {
    display: block;
    margin-top: 15px;
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 4px;
    background: rgba(255,255,255,0.08);
    color: white;
}

button {
    background-color: #003366;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

/* =========================================================
   BLOCKQUOTE (FIXED FIRST-LETTER ISSUE)
   ========================================================= */

blockquote {
    text-align: justify;
    margin: 20px;
    font-style: italic;
    font-size: 1rem;
    line-height: 1.5;
}

/* Prevent giant bold first letter */
blockquote:first-letter {
    font-size: 1.2em;
    font-weight: normal;
    font-style: normal;
}

/* =========================================================
   BOX SECTION (Glass + Blue Glow)
   ========================================================= */

.box {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(0,153,255,0.35);
    padding: 18px;
    margin: 25px 0;
    border-radius: 12px;
    backdrop-filter: blur(6px);
    box-shadow: 0 0 18px rgba(0,153,255,0.35);
}

/* =========================================================
   INFOBAR (Glass + Blue Glow)
   ========================================================= */

.infobar {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    padding: 12px;
    text-align: center;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 10px;
    backdrop-filter: blur(4px);
    box-shadow: 0 0 16px rgba(0,153,255,0.45);
    margin: 20px 0;
}

/* =========================================================
   HR LINE
   ========================================================= */

.styled-line {
    width: 80%;
    border: 4px solid #036;
    border-radius: 6px;
}

/* =========================================================
   CSS3 FEATURES (Images)
   ========================================================= */

.medium-photo {
    width: 60%;
    display: block;
    margin: auto;
    border-radius: 12px;
    box-shadow: 0px 4px 12px rgba(0,0,0,0.3);
}
