/*  DESIGN  */
:root {
    /* Brand */
    --navy: #003049;
    --navy-soft: #004E6E;
    --navy-deep: #00243A;
    --white: #FFFFFF;
    --accent: #E9C46A;            
    --accent-ink: #B8892B;  

    /* Supporting neutrals */
    --tint: #F2F9FC;
    --accent-wash: #F5EFE6;       
    --accent-wash-soft: #FAF7F2;  
    --border: #E8DFD2;            


    /* Text */
    --text: #003049;
    --text-muted: #4A6572;
    --text-on-navy: rgba(255, 255, 255, 0.88);
    --text-on-navy-muted: rgba(255, 255, 255, 0.65);

    --card-shadow: 0 8px 30px rgba(15, 23, 42, 0.10);
    --transition: all 0.3s ease;
    --font-heading: 'Libre Caslon Text', Georgia, serif;
    --font-body: 'Work Sans', system-ui, sans-serif;
}

/* GLOBAL STYLES & BASE */

body {
    font-family: var(--font-body);
}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: var(--navy);
}
h1, h2 {
    color: var(--text);
    font-family: var(--font-heading);
    font-weight: 700;
}

h3 {
    text-align: center;
    color: var(--text);
    font-family: var(--font-heading);
}

p {
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-muted);
}

main {
    background-color: var(--navy);
    max-width: 5000px;
    margin: 0 auto;
    padding: 0 2rem;
    flex: 1;
}

/*  SITE HEADER & NAVIGATION */
.site-header {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    background-color: rgba(0, 48, 73, 0.85);
    backdrop-filter: blur(10px);
    color: var(--navy);
    text-align: center;
    z-index: 1000;
    padding: 1rem 0;
}

.site-header h1, .site-header p {
    margin: 10px 0;
}

nav {
    background-color: transparent;
    padding: 10px 0;
    text-align: center;
    margin-bottom: 30px;
    font-weight: bolder;
    width: calc(100% - 4rem);
}

.nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.6rem 0;
}

.logo {
    color: var(--white);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    letter-spacing: 0.08em;
}

.logo:hover {
    color: var(--accent);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1rem;
    margin-left: auto;
    align-items: center;
    padding-left: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-on-navy);
    padding: 6px 10px;
    border-radius: 8px;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-links a:hover {
    color: var(--accent);
    background-color: rgba(255, 255, 255, 0.08);
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 0;
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
}

/* HERO SECTION */
.hero {
    background-color: var(--navy);
    padding: 120px 20px 40px;
    text-align: center; 
    margin: 0;
}

.hero-title {
    text-align: center;
   padding: 10rem 0 6rem;
}

.hero h1, .hero-text h1, .hero-title h1 {
    font-size: 2.5rem;
    margin: 0;
    color: var(--white);
}

/*  ABOUT SECTION & PROFILE */
.about-container {
    display: flex;
    gap: 3rem;
    align-items: center;          
    max-width: 1100px;            
    margin: 2rem auto 0;          
}

.about {
    flex: 1;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, var(--accent-wash) 0%, var(--accent-wash-soft) 100%);
    border-radius: 32px;
    border: 1px solid var(--border) ;
    box-shadow: var(--card-shadow);
}

.about h2 {
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 2rem;
}

.about p {
    text-align: left;
    line-height: 1.8;
}

.profile-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0;
}

.profile {
    width: 100%;
    max-width: 420px;
    aspect-ratio: 1 /1;
    height: auto;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 20px 20px 60px rgba(0,0,0,0.05);
}

/*  SKILLS & COURSEWORK */
.skills-courses {
    max-width: 1100px;
    margin: 5rem auto 0;
}

.sc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.sc-column {
    display: flex;
    flex-direction: column;
}

.sc-column h2 {
    color: var(--white);
    font-size: 2rem;
    text-align: center;
    margin: 0 0 1.5rem;
}

.sc-card {
    background: linear-gradient(135deg, var(--accent-wash) 0%, var(--accent-wash-soft) 100%);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
}

.sc-card h3 {
    text-align: left;
    font-size: 1.1rem;
    margin: 1.5rem 0 0.75rem;
}

.sc-card h3:first-child {
    margin-top: 0;
}

/* Skill tags (kept from before, adjusted) */
.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem 0;
    justify-content: flex-start;
}

.skill-tag {
   color: var(--navy);
    font-size: 0.95rem;
    font-weight: 500;
}
.skill-tag:not(:last-child)::after {
    content: "·";
    margin: 0 0.6rem;
    color: var(--accent-ink);
}

/* Course list */
.courses-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.courses-list li {
    color: var(--text);
    font-size: 1rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border);
}

.courses-list li:first-child {
    padding-top: 0;
}

.courses-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.courses-list .wip-badge {
    margin-left: 0.5rem;
}

@media (max-width: 860px) {
    .sc-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}


/* PROJECTS SECTION */
.page-title {
    padding: 8rem 0 2.5rem;
}

.projects-container {
    max-width: 1100px;
    margin: 0 auto 4rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.project-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    box-shadow: var(--card-shadow);
}


.project-card.featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.project-card.wide {
    grid-column: 1 / -1;
}

.featured-main {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card h2 {
    font-size: 1.4rem;
    text-align: left;
    margin: 0 0 0.75rem;
}

.project-card.featured h2 {
    font-size: 1.75rem;
}

.project-card p {
    font-size: 1rem;
    line-height: 1.7;
    margin: 0 0 1.25rem;
}

.project-features {
    background: var(--accent-wash);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
}

.project-card.featured .project-features {
    margin-bottom: 0;
}

.project-features strong {
    color: var(--navy);
    display: block;
    margin-bottom: 0.5rem;
}

.project-features ul {
    margin: 0;
    padding-left: 1.1rem;
    color: var(--text-muted);
}

.project-features li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.project-features li:last-child {
    margin-bottom: 0;
}

.project-tags {
   display: flex;
    flex-wrap: wrap;
    gap: 0.3rem 0;
    margin-top: auto;
}

.tag {
    color: var(--navy);
    font-size: 0.9rem;
    font-weight: 500;
}

.tag:not(:last-child)::after {
    content: "·";
    margin: 0 0.6rem;
    color: var(--accent-ink);
}

.wip-badge {
    font-size: 0.85rem;
    font-weight: 500;
    color: #813800;
    background: #fff8de;
    padding: 0.2rem 0.7rem;
    border-radius: 20px;
    vertical-align: middle;
}

@media (max-width: 860px) {
    .projects-grid,
    .project-card.featured {
        grid-template-columns: 1fr;
    }
}

/* CONTACT SECTION & FORM */
.contact-grid {
    max-width: 600px;
    margin: 0 auto 4rem;
}

.contact-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: var(--card-shadow);
}

.contact-form {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.contact-form label {
    color: var(--text);
    font-weight: 500;
    margin-bottom: 0.4rem;
}

input, textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 0.9rem 1rem;
    margin-bottom: 1.25rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--accent-wash-soft);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

textarea {
    resize: vertical;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(233, 196, 106, 0.35);
}

#submit-btn {
    align-self: flex-start;
    background: var(--navy);
    color: var(--white);
    border: 0;
    padding: 0.85rem 1.75rem;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

#submit-btn:hover {
    background: var(--navy-soft);
}

#form-status {
    margin: 1rem 0 0;
    font-weight: 500;
}

/* FOOTER & SOCIALS */
.site-footer {
    width: 100%;
    margin-top: 100px;
    background: linear-gradient(to bottom, var(--navy), var(--navy-deep));
    color: var(--text-on-navy);
    text-align: center;
    padding: 2.5rem 1rem;
}

.site-footer .footer-column h3 {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
    color: var(--white);
}

.site-footer .footer-column p {
    margin: 0.25rem 0;
    color: var(--text-on-navy);
}

.site-footer a {
    color: var(--accent);
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

.social-icons {
    margin-top: 0.75rem;
}

.social-icons a {
    display: inline-block;
    margin: 0 10px;
    color: var(--text-on-navy);
    transition: color 0.2s ease;
}

.social-icons a:hover {
    color: var(--accent);
}

.footer-copy {
    margin: 1.25rem 0 0;
    font-size: 0.85rem;
    color: var(--text-on-navy-muted);
}

/*PHONE VIEW*/
@media (max-width: 768px) {
    main {
        padding: 0 1rem;
    }

    nav {
        width: calc(100% - 2rem);
        margin-bottom: 0;
    }

    .nav-links {
        gap: 0.25rem;
    }

    .nav-links a {
        padding: 6px 8px;
        font-size: 0.95rem;
    }

    .hero-title {
        padding: 7rem 0 3rem;
    }

    .page-title {
        padding: 7rem 0 2rem;
    }

    .hero-title h1 {
        font-size: 2rem;
    }

    .about-container {
        flex-direction: column-reverse;
        gap: 2rem;
        margin-top: 0;
    }

    .profile-container {
        justify-content: center;
    }

    .profile {
        max-width: 220px;
    }

    .about,
    .sc-card,
    .project-card,
    .contact-card {
        padding: 1.5rem;
        border-radius: 16px;
    }

    .about h2,
    .sc-column h2 {
        font-size: 1.75rem;
    }

    .skills-courses {
        margin-top: 3rem;
    }
}