/* RESET & BASE
----------------------------------------------------------*/
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: #4a5568;
    background: #f7fafc;
}

a {
    color: #3182ce;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #2c5282;
    text-decoration: underline;
}

/* LAYOUT
----------------------------------------------------------*/
.page {
    max-width: 900px;
    background-color: #fff;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.header {
    background: #fff;
    padding: 20px 30px;
    border-bottom: 1px solid #e2e8f0;
}

.loginDisplay {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.logo {
    width: 80px;
    height: 80px;
    background-image: url("/images/a7logo15017.png");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

.header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #004FFF;
    margin: 0;
    flex: 1;
    min-width: 200px;
}

.stack-flair-container {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

.stack-flair-container img {
    height: 58px;
    width: auto;
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.stack-flair-container img:hover {
    opacity: 1;
}

/* NAVIGATION
----------------------------------------------------------*/
.menu {
    background: linear-gradient(135deg, #3a4f63 0%, #2d3e4f 100%);
    padding: 0;
    display: flex;
    gap: 0;
}

.menu a {
    color: #e2e8f0;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    border-bottom: 3px solid transparent;
}

.menu a:hover,
.menu a.active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    border-bottom-color: #4299e1;
}

.menu .seperator {
    display: none;
}

/* MAIN CONTENT
----------------------------------------------------------*/
.main {
    padding: 30px;
    min-height: 400px;
}

/* ABOUT PAGE
----------------------------------------------------------*/
.about-intro {
    margin-bottom: 30px;
}

.about-intro .lead {
    font-size: 1.25rem;
    color: #2d3748;
    margin-bottom: 8px;
}

.about-intro .lead strong {
    color: #004FFF;
}

.about-intro .subtitle {
    color: #718096;
    margin: 0;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.skill-category {
    background: #f8fafc;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e2e8f0;
}

.skill-category h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #4299e1;
}

.skill-category ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.skill-category li {
    padding: 6px 0;
    color: #4a5568;
    font-size: 14px;
    border-bottom: 1px solid #edf2f7;
}

.skill-category li:last-child {
    border-bottom: none;
}

.skill-category li strong {
    color: #2d3748;
}

.tagline {
    font-size: 15px;
    color: #718096;
    text-align: center;
    padding: 20px;
    background: #f8fafc;
    border-radius: 8px;
    margin: 0;
}

.tagline strong {
    color: #2d3748;
}

.divider {
    height: 3px;
    background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
    margin: 30px auto;
    max-width: 400px;
}

/* CONTACT & PROJECTS PAGES
----------------------------------------------------------*/
h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 25px 0;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
}

.info-table tr {
    border-bottom: 1px solid #edf2f7;
    transition: background-color 0.2s ease;
}

.info-table tr:hover {
    background-color: #f8fafc;
}

.info-table tr:last-child {
    border-bottom: none;
}

.info-table td {
    padding: 14px 10px;
    vertical-align: middle;
}

.info-table .label {
    width: 140px;
    font-weight: 500;
    color: #4a5568;
}

.info-table .icon {
    width: 40px;
    text-align: center;
}

.info-table .icon img {
    width: 24px;
    height: 24px;
    vertical-align: middle;
    opacity: 0.8;
}

.info-table .value a {
    color: #3182ce;
    word-break: break-word;
}

.info-table .value a:hover {
    color: #2c5282;
}

/* Legacy table support */
table[cellspacing] {
    width: 100%;
    border-collapse: collapse;
}

table[cellspacing] tr {
    border-bottom: 1px solid #edf2f7;
    transition: background-color 0.2s ease;
}

table[cellspacing] tr:hover {
    background-color: #f8fafc;
}

table[cellspacing] td {
    padding: 12px 8px;
    vertical-align: middle;
}

table[cellspacing] td:first-child {
    font-weight: 500;
    color: #4a5568;
}

table[cellspacing] img {
    vertical-align: middle;
    opacity: 0.85;
}

table[cellspacing] a {
    color: #3182ce;
}

table[cellspacing] a:hover {
    color: #2c5282;
}

.TableContents {
    margin: 0;
    padding: 0;
}

.TableContents span {
    font-family: inherit;
    font-size: inherit;
    color: #4a5568;
}

.TableContents strong {
    color: #2d3748;
}

.Hyperlink {
    font-family: inherit !important;
    font-size: 14px !important;
    color: #3182ce !important;
}

.Hyperlink:hover {
    color: #2c5282 !important;
}

/* FOOTER
----------------------------------------------------------*/
.footer {
    text-align: center;
    padding: 20px;
    color: #718096;
    font-size: 13px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

/* UTILITIES
----------------------------------------------------------*/
.clear {
    clear: both;
}

.title {
    display: none;
}

/* Hide old separator styling */
.hideSkiplink {
    background: none;
}

/* RESPONSIVE
----------------------------------------------------------*/
@media (max-width: 768px) {
    .page {
        margin: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .header {
        padding: 15px 20px;
    }

    .header h1 {
        font-size: 1.2rem;
    }

    .logo {
        width: 60px;
        height: 60px;
    }

    .menu {
        flex-wrap: wrap;
    }

    .menu a {
        padding: 10px 16px;
        font-size: 13px;
    }

    .main {
        padding: 20px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .skill-category {
        padding: 15px;
    }

    table[cellspacing] td:first-child {
        width: 100px;
        font-size: 13px;
    }

    .Hyperlink {
        font-size: 12px !important;
    }
}

@media (max-width: 480px) {
    .loginDisplay {
        flex-direction: column;
        text-align: center;
    }

    .header h1 {
        text-align: center;
    }

    .header .stack-flair {
        display: none;
    }

    .menu {
        justify-content: center;
    }
}
