/* =========================
   RESET / GLOBAL
   Removes default spacing and makes sizing easier to control
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* =========================
   BODY
   Main page settings
========================= */
body {
    background-color: #101010;
    color: #f5f5f5;
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* =========================
   TEXT
========================= */
h1 {
    color: cyan;
    margin-bottom: 10px;
}

h2 {
    color: orange;
    margin-bottom: 15px;
}

h3,
h4 {
    color: #ffd27f;
    margin-top: 20px;
    margin-bottom: 10px;
}

p {
    margin-bottom: 15px;
    font-size: 18px;
}

ul,
ol {
    margin-bottom: 15px;
    padding-left: 20px;
}

li {
    margin-bottom: 10px;
}

/* =========================
   HEADER
========================= */
.header {
    text-align: center;
    padding: 50px 20px;
    background: linear-gradient(135deg, #151515, #202020);
    border-bottom: 2px solid cyan;
}

.subtitle {
    color: #cccccc;
    font-size: 18px;
}

/* =========================
   NAVBAR
========================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    background-color: #1e90ff;
    padding: 15px 20px;
}

.nav-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.navbar a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.navbar a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Search box in navbar */
.search {
    padding: 10px 12px;
    border: none;
    border-radius: 6px;
    outline: none;
    min-width: 240px;
}

/* =========================
   MAIN
========================= */
.main {
    max-width: 1000px;
    margin: 30px auto;
    padding: 20px;
}

/* Reusable card layout */
.card {
    background-color: #1b1b1b;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    text-align: left;
}

/* =========================
   ABOUT ME
========================= */
.aboutme {
    text-align: left;
}

.aboutme img {
    display: block;
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid cyan;
    margin: 0 auto 15px auto;
}

.aboutme h2,
.aboutme h3 {
    margin-top: 25px;
}

.aboutme p {
    margin-bottom: 15px;
}

.aboutme ul,
.aboutme ol {
    margin: 10px 0 20px 25px;
}

.aboutme li {
    margin-bottom: 8px;
}

.job {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #333;
}

.job:last-of-type {
    border-bottom: none;
}

/* =========================
   GOALS
========================= */
#goals h2,
#projects h2,
.contact h2 {
    text-align: center;
}

.goal-list {
    padding-left: 20px;
}

/* =========================
   PROJECTS
========================= */
#projects p,
#projects ul,
#projects ol {
    margin-bottom: 15px;
}

#projects ul {
    padding-left: 20px;
}

/* =========================
   CONTACT FORM
========================= */
.contact form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
}

.contact label {
    font-weight: bold;
    color: #dddddd;
}

.contact input,
.contact textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #444;
    border-radius: 8px;
    background-color: #2a2a2a;
    color: white;
    font-size: 16px;
}

.contact textarea {
    resize: vertical;
}

/* Submit button */
.contact button {
    background-color: cyan;
    color: black;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.3s ease;
}

.contact button:hover {
    background-color: orange;
    transform: scale(1.03);
}

/* Message area below form */
.form-message {
    margin-top: 10px;
    font-weight: bold;
    min-height: 24px;
}

/* Class added by JavaScript if validation fails */
.error {
    border: 2px solid red !important;
}

/* Optional hidden state for search results */
.hidden {
    display: none;
}

/* =========================
   FOOTER
========================= */
.footer {
    text-align: center;
    padding: 20px;
    background-color: #0a0a0a;
    border-top: 2px solid cyan;
    margin-top: 30px;
}

/* =========================
   RESPONSIVE DESIGN
========================= */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: center;
    }

    .nav-links {
        justify-content: center;
    }

    .search {
        min-width: 100%;
    }

    .aboutme img {
        width: 120px;
        height: 120px;
    }

    .main {
        padding: 15px;
    }

    .card {
        padding: 20px;
    }

    p {
        font-size: 16px;
    }
}