@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ==========================================
   1. EXISTING TAG SELECTORS (In Order of Appearance)
   ========================================== */
* {
    box-sizing: border-box;
}

body {
    background: #0f172a;
    background-image:
        radial-gradient(at 0% 0%, rgba(30, 58, 138, 0.25) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(15, 23, 42, 0.8) 0px, transparent 50%);
    background-attachment: fixed;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    margin: 0;
    padding: 40px 20px;
    color: #334155;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1 {
    color: #0f172a;
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0 0 8px 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    color: #64748b;
    font-size: 1.15rem;
    font-weight: 500;
    margin: 0 0 25px 0;
}

p {
    font-size: 1.05rem;
    color: #334155;
    margin-bottom: 20px;
}

hr {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(226, 232, 240, 0) 0%, #e2e8f0 50%, rgba(226, 232, 240, 0) 100%);
    margin: 35px 0;
}

header {
    text-align: center;
    padding-bottom: 10px;
}

nav {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    background-color: #f1f5f9;
    padding: 6px 10px;
    border-radius: 99px;
    border: 1px solid #e2e8f0;
}

nav a {
    color: #475569;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 18px;
    border-radius: 99px;
    transition: all 0.25s ease;
}

nav a:hover {
    color: #1e3a8a;
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

nav a.selected {
    background-color: #1e3a8a;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.25);
}

main {
    /* Main container default styles if needed */
}

section {
    /* Section default styles if needed */
}

h3 {
    color: #0f172a;
    font-size: 1.35rem;
    font-weight: 700;
    margin-top: 10px;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

ul {
    /* List styles */
}

li {
    margin: 0;
}

a {
    color: #1e3a8a;
    text-decoration: none;
}

img {
    max-width: 100%;
}

blockquote {
    margin: 20px 0;
    padding: 15px 20px;
    background: #f8fafc;
    border-left: 4px solid #1e3a8a;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0 30px 0;
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

caption {
    font-weight: 700;
    font-size: 1.1rem;
    color: #1e3a8a;
    margin-bottom: 10px;
    text-align: left;
}

thead {
    /* Table head */
}

tr {
    /* Table row */
}

tr:hover {
    background-color: #f1f5f9;
}

th {
    background-color: #f8fafc;
    color: #0f172a;
    font-weight: 700;
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.95rem;
}

td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.95rem;
}

select {
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}

option {
    /* Option styles */
}

figure {
    margin: 0;
}

figcaption {
    margin-top: 12px;
    font-weight: 700;
    color: #1e293b;
    font-size: 0.95rem;
}

dt {
    font-weight: 700;
    color: #0f172a;
    margin-top: 10px;
}

dd {
    margin-left: 0;
    margin-bottom: 10px;
}

small {
    font-size: 0.85rem;
}

sub, sup {
    font-size: 0.75rem;
}

footer {
    text-align: center;
    font-size: 0.85rem;
    color: #94a3b8;
    padding-top: 10px;
    font-weight: 500;
}


/* ==========================================
   2. IDS (In Order of Appearance)
   ========================================== */
#wrapper {
    background-color: #ffffff;
    padding: 50px 45px;
    max-width: 860px;
    margin: 0 auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#top {
    /* Top heading ID */
}

#about {
    /* About section ID */
}

#contact {
    /* Contact section ID */
}

#contact ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
}

#contact li {
    margin: 0;
}

#contact a {
    display: block;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 12px 16px;
    border-radius: 10px;
    color: #1e3a8a;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

#contact a:hover {
    background: #ffffff;
    border-color: #1e3a8a;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(30, 58, 138, 0.08);
}

#social {
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
    border: 1px solid #dbeafe;
    border-left: 4px solid #1e3a8a;
    border-radius: 12px;
    padding: 18px 22px;
    margin-top: 30px;
}

#social p {
    margin: 0;
    font-size: 0.95rem;
    color: #1e293b;
    font-weight: 500;
}


/* ==========================================
   3. CLASSES (At the Very End - Minimum 2 Required)
   ========================================== */
.profile-img {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    margin: 35px auto;
    border: 4px solid #ffffff;
    box-shadow: 0 12px 28px rgba(30, 58, 138, 0.18), 0 0 0 2px #e2e8f0;
    transition: transform 0.3s ease;
}

.profile-img:hover {
    transform: translateY(-4px);
}

.important {
    color: #1e3a8a;
    font-weight: 700;
    background: #eff6ff;
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid #dbeafe;
}

.highlight {
    background: #fef3c7;
    color: #92400e;
    padding: 3px 10px;
    border-radius: 6px;
    font-weight: 600;
}

.scf-courses {
    list-style-type: square;
    color: red;
}

.custom-bullet-list {
    list-style-image: url('images/bullet.png');
}

.purple-spec {
    color: purple;
    font-size: 1.2em;
}

.academic-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0 30px 0;
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.portfolio-container {
    width: 100%;
    margin: 30px auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 0;
}

.portfolio-item {
    margin: 0;
    background-color: #ffffff;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    text-align: center;
    box-sizing: border-box;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
}

.box {
    border: 2px solid #1e3a8a;
    background-color: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    margin: 25px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.box h3 {
    margin-top: 0;
    color: #1e3a8a;
}

/* ==========================================
   RESPONSIVE MEDIA QUERIES
   ========================================== */
@media only screen and (min-width: 640px) {
    .portfolio-item {
        width: calc(50% - 10px);
    }
}

@media screen and (max-width: 600px) {
    nav {
        flex-direction: column;
        border-radius: 16px;
        width: 100%;
    }
    
    nav a {
        display: block;
        width: 100%;
        text-align: center;
        padding: 8px 12px;
    }
}