@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@500;700&family=Roboto+Mono:wght@400;700&display=swap');

:root {
    --bg-primary: #121212;
    --bg-content: #1d1d1d;
    --accent-orange: #FF8C00;
    --accent-orange-hover: #FFA500;
    --accent-blue: #00BFFF;
    --accent-cyan: #41EAD4;
    --text-primary: #EAEAEA;
    --divider: #333;
    --card-glow: 0 0 8px var(--accent-orange);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* --- Base Navigation Styles --- */
nav {
    background: var(--bg-primary);
    border-bottom: 2px solid var(--accent-orange);
    padding: 0.5em 2em;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}
nav .nav-logo {
    font-family: 'Exo 2', 'Roboto Mono', system-ui, sans-serif;
    font-size: 1.5em;
    font-weight: 700;
    color: var(--accent-orange);
    letter-spacing: 2px;
}

/* --- Hamburger Button --- */
.nav-toggle {
    display: block;
    background: none;
    border: none;
    color: var(--accent-orange);
    cursor: pointer;
    margin-left: auto;
    order: 2;
    position: relative;
    width: 36px;
    height: 28px;
    padding: 0;
    z-index: 110;
    -webkit-tap-highlight-color: transparent;
}

.hamburger-box {
    position: relative;
    display: inline-block;
    width: 100%;
    height: 100%;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    position: absolute;
    left: 50%;
    width: 22px;
    height: 3px;
    background-color: var(--accent-orange);
    border-radius: 2px;
    transition: transform 0.2s ease-in-out, background-color 0.2s ease-in-out, opacity 0.2s ease-in-out;
    transform-origin: center;
}

.hamburger-inner {
    top: 50%;
    transform: translate(-50%, -50%);
    display: block;
}

.hamburger-inner::before,
.hamburger-inner::after {
    content: '';
    display: block;
    left: 50%;
    transform: translateX(-50%);
}

.hamburger-inner::before {
    top: calc(50% - 9px);
}

.hamburger-inner::after {
    top: calc(50% + 9px);
}

/* --- Hamburger Animation --- */
.nav-toggle[aria-expanded="true"] .hamburger-inner {
    transform: translate(-50%, -50%) rotate(45deg);
    background-color: var(--accent-orange-hover);
}

.nav-toggle[aria-expanded="true"] .hamburger-inner::before {
    top: 50%;
    transform: translate(-50%, -50%) rotate(-90deg);
    background-color: var(--accent-orange-hover);
}

.nav-toggle[aria-expanded="true"] .hamburger-inner::after {
    top: 50%;
    opacity: 0;
    transform: translate(-50%, -50%) rotate(0deg);
}


/* --- Mobile-First Menu Styles (Default) --- */
#main-nav {
    display: none; 
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 101;
    background: var(--bg-primary);
    border-bottom: 2px solid var(--accent-orange);
    flex-direction: column;
    align-items: center;
    padding: 0;
    margin: 0;
    overflow-y: auto;
    max-height: calc(100vh - 70px); 
}

#main-nav.show {
    display: flex;
}

#main-nav li {
    display: block;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid var(--divider);
}

#main-nav li a {
    display: block;
    padding: 1em 1em;
    width: 100%;
}

#main-nav li a:hover,
#main-nav li a:focus {
    background: var(--accent-orange-hover);
    color: #121212;
    text-decoration: underline;
    outline: none;
}

#main-nav li:last-child {
    border-bottom: none;
}

#main-nav li.social-icons {
    padding: 1em 1em;
    justify-content: center;
}

#main-nav li.social-icons a {
    display: inline-flex; 
    align-items: center;
    justify-content: center;
    width: auto; 
    padding: 0.25em; 
    border-radius: 50%;
    
    transition: background 0.2s, color 0.2s, transform 0.2s;
}

#main-nav li.social-icons a:hover,
#main-nav li.social-icons a:focus {
    background: var(--accent-orange-hover);
    color: #121212;
    transform: scale(1.15); 
    outline: none;
    text-decoration: none; 
}


/* --- Mobile Nav Bar Layout (< 900px) --- */
@media (max-width: 900px) {
    nav {
        padding: 0.5em 1em;
    }
    nav .nav-logo {
        order: 1;
    }
    .nav-toggle {
        order: 2;
        margin-left: 1em;
    }
}


/* --- Compact Desktop Menu (> 900px) --- */
@media (min-width: 901px) {
    #main-nav {
        /* Positioning */
        left: auto; 
        right: 2em; 
        top: calc(100% + 0.5em); 
        
        /* Size */
        width: 320px; 
        
        /* Appearance */
        border: 1px solid var(--accent-orange);
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        
        /* Layout */
        align-items: flex-start; 
    }

    #main-nav li {
        text-align: left; 
    }

    #main-nav li a {
        padding: 0.8em 1.2em; 
    }

    /* Override center alignment for social icons */
    #main-nav li.social-icons {
        justify-content: flex-start;
        padding: 0.8em 1.2em; 
    }
}
/* --- End Nav Styles --- */


html {
    font-size: 16px;
    line-height: 1.5;
    scroll-behavior: smooth;
    background: var(--bg-primary);
    color-scheme: dark;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Exo 2', 'Roboto Mono', system-ui, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

a {
    color: var(--accent-orange);
    text-decoration: none;
    transition: color 0.2s;
}
a:hover, a:focus {
    color: var(--accent-orange-hover);
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

ul,
ol {
    padding-left: 1.5em;
}

button,
input,
select,
textarea {
    font: inherit;
    background: var(--bg-content);
    color: var(--text-primary);
    border: 1px solid var(--divider);
    border-radius: 4px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

/* Section and Card Styling */
.card, .content-section {
    background: transparent;
    border-radius: 8px;
    box-shadow: none !important; 
    border: none;
    padding: 2em 2em 1.5em 2em;
    margin: 2em auto;
    max-width: 1000px; 
    width: 100%;      
    box-sizing: border-box;
    transition: border-color 0.2s, transform 0.2s;
}
.card:hover {
    background: #232323;
    border: 1px solid var(--accent-orange-hover);
    transform: scale(1.03);
    box-shadow: none !important;
}

.content-section:hover {
    background: #181818; 
    border: none;
    transform: scale(1.02);
    box-shadow: none !important;
}

/* Responsive container for smaller screens */
@media (max-width: 1000px) {
    .card, .content-section {
        max-width: 98vw;
        padding: 1.2em 0.7em 1em 0.7em;
    }
}

/* Project Card Specific Styles */
.project-list {
    display: flex;
    flex-direction: column; 
    gap: 2em;
    justify-content: flex-start;
    align-items: stretch;
    margin-top: 1em;
}

.project-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-content);
    border-radius: 8px;
    border: none;
    padding: 1.5em 1.2em 1em 1.2em;
    margin: 0;
    box-shadow: none !important;
    transition: background 0.2s, transform 0.2s;
    max-width: 700px;
    width: 100%;
    align-self: center;
}

.project-card:hover {
    background: #232323;
    transform: scale(1.02);
    border: 1px solid var(--accent-orange-hover);
}

.project-img {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    border: 1px solid var(--divider);
    object-fit: contain;
    background: #fff;
    margin-bottom: 0.7em;
    display: block;
    align-self: flex-start;
}

.project-card h3 {
    color: var(--accent-orange);
    margin: 0.4em 0 0.2em 0;
    font-size: 1.08em;
    font-weight: 700;
    text-align: left;
}

.project-card p {
    color: var(--text-primary);
    font-size: 0.98em;
    margin: 0.2em 0 0.5em 0;
    text-align: left;
}

.project-card .cta {
    margin-top: 1em;
    width: fit-content;
    align-self: flex-start;
    transition: background 0.2s, transform 0.2s;
}
.project-card .cta:hover, .project-card .cta:focus {
    background: var(--accent-orange-hover);
    color: #121212;
    transform: scale(1.04);
    text-decoration: underline;
}

button.cta a {
    color: inherit;
    text-decoration: none;
}

/* Certification Card Styles */
.cert-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
    justify-content: center;
    align-items: flex-start;
    margin: 1em 0 2em 0;
}

.cert-card {
    flex: 1 1 180px;
    max-width: 240px;
    min-width: 160px;
    background: var(--bg-content);
    border-radius: 8px;
    padding: 0.7em 0.7em;
    margin: 0.2em 0;
    display: flex;
    align-items: center;
    box-shadow: none;
    transition: background 0.2s, transform 0.2s;
}

.cert-card:hover {
    background: #232323;
    transform: scale(1.03);
}

.cert-img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    margin-right: 0.7em;
    border: 1px solid var(--divider);
    object-fit: cover;
}

.cert-card strong {
    font-size: 1em;
}

.cert-card div {
    font-size: 0.92em;
    line-height: 1.3;
}

/* Professional Experience Section Styles */
.work-list {
    display: flex;
    flex-direction: column; 
    gap: 2em;
    justify-content: flex-start;
    align-items: stretch;
    margin-top: 1em;
}

.work-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-content);
    border-radius: 8px;
    border: none;
    padding: 1.5em 1.2em 1em 1.2em;
    margin: 0;
    box-shadow: none !important;
    transition: background 0.2s, transform 0.2s;
    max-width: 700px;
    width: 100%;
    align-self: center;
}

.work-card:hover {
    background: #232323;
    transform: scale(1.02);
    border: 1px solid var(--accent-orange-hover);
}

.work-card-header {
    display: flex;
    align-items: center;
    gap: 1.2em;
    margin-bottom: 0.7em;
}

.work-img {
    width: 64px;
    height: 64px;
    border-radius: 64px;
    border: 1px solid var(--divider);
    object-fit: contain;
    background: #fff;
    flex-shrink: 0;
}

.work-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.work-title {
    color: var(--accent-orange);
    font-size: 1.08em;
    font-weight: 700;
    margin-bottom: 0.2em;
}

.work-date {
    color: var(--text-primary);
    font-size: 0.97em;
    margin-bottom: 0.1em;
}

.work-card p {
    color: var(--text-primary);
    font-size: 0.98em;
    margin: 0.2em 0 0.5em 0;
}

.work-card ul {
    margin: 0.5em 0 0 0;
    padding-left: 1.2em;
    font-size: 0.97em;
}

.work-card li {
    margin-bottom: 0.3em;
    color: var(--text-primary);
}

/* Education Section Styles */
.education-main {
    display: flex;
    flex-direction: column;
    gap: 1em;
    border-radius: 8px;
    border: 1px solid transparent;
    padding: 1.5em 1.2em 1em 1.2em;
    margin: 0 auto;
    max-width: 700px;
    box-shadow: none !important;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.card .education-main:hover,
.content-section.card .education-main:hover {
    background: #232323;
    border: 1px solid var(--accent-orange-hover);
    transform: scale(1.02);
}

.education-header {
    font-size: 1.05em;
    margin-bottom: 0.5em;
    line-height: 1.5;
}

.education-date {
    color: var(--accent-orange);
    font-weight: 500;
    margin-top: 0.2em;
    margin-bottom: 0.2em;
}

.education-courses {
    margin: 0.5em 0 0 0;
    padding-left: 1.2em;
    font-size: 0.97em;
}

.education-courses li {
    margin-bottom: 0.3em;
    color: var(--text-primary);
}

/* Education Card Header Styles */
.education-card-header {
    display: flex;
    align-items: center;
    gap: 1.2em;
    margin-bottom: 0.7em;
}

.education-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 1.05em;
    line-height: 1.5;
}

.education-card-header .education-date {
    color: var(--accent-orange);
    font-weight: 500;
    margin-top: 0.2em;
    margin-bottom: 0.2em;
}

/* Headings and Accent Elements */
h1, h2, h3, h4, h5, h6 {
    color: var(--accent-orange); 
    font-family: 'Exo 2', 'Roboto Mono', system-ui, sans-serif;
    font-weight: 700;
    margin-bottom: 0.5em;
}

/* Section Divider */
.content-section:not(:last-child) {
    margin-bottom: 2em;
}

/* Paragraphs and Text */
p, li, label, input, textarea {
    color: var(--text-primary); 
}

/* Remove orange backgrounds from content */
.card, .content-section {
    background: transparent;
}
/* CTA Buttons */
button.cta {
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan));
    color: #121212;
    font-weight: 700;
    border: none;
    transition: background 0.2s, transform 0.2s;
}
button.cta:hover, button.cta:focus {
    background: var(--accent-orange-hover);
    color: #121212;
    transform: scale(1.04);
    box-shadow: none; /* Remove shadow */
    outline: none;
    text-decoration: underline;
}

#stars-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    display: block;
}

/* Hero Section Styles */
#hero {
    background: var(--bg-content) !important;
}
.hero-pitch {
    font-size: 1.2em;
    margin: 0.5em 0 1em 0;
    color: var(--text-primary);
    max-width: 600px;
}

#hero .cta {
    display: inline-block;
    padding: 0.7em 1.4em;
    font-size: 1em;
    font-weight: 700;
    border-radius: 6px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan));
    color: #121212;
    text-align: center;
    border: none;
    transition: background 0.2s, color 0.2s, transform 0.2s;
    text-decoration: none;
    box-shadow: none;
}

#hero .cta:hover,
#hero .cta:focus {
    background: var(--accent-orange-hover);
    color: #121212;
    transform: scale(1.04);
    text-decoration: underline;
    outline: none;
}
 

::-webkit-scrollbar {
    width: 8px;
    background: var(--bg-content);
}
::-webkit-scrollbar-thumb {
    background: var(--accent-orange);
    border-radius: 4px;
}

.social-icons {
    display: flex;
    gap: 0.5em;
    align-items: center;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.25em;
    border-radius: 50%;
    color: var(--accent-orange);
    background: transparent;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}

.social-icons a:hover,
.social-icons a:focus {
    background: var(--accent-orange-hover);
    color: #121212;
    transform: scale(1.15);
    outline: none;
}

.social-icons svg {
    width: 24px;
    height: 24px;
    display: block;
}

#stem-outreach {
    margin-top: 2em;
}

/* Card Media (Video/Embed) Styles */
.card-media {
    position: relative;
    padding-bottom: 56.25%; 
    height: 0;
    overflow: hidden;
    width: 100%;
    border-radius: 8px;
    margin-bottom: 1em;
    background: #000;
}

.card-media iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.card-media img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    background: #000;
}

/* Contact Links Styles */
.contact-links {
    display: flex;
    gap: 1em;
    justify-content: center;
    align-items: center;
    margin-top: 1.2em;
}

.contact-links .cta {
    display: inline-block;
    padding: 0.7em 1.4em;
    font-size: 1em;
    font-weight: 700;
    border-radius: 6px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan));
    color: #121212;
    text-align: center;
    border: none;
    transition: background 0.2s, color 0.2s, transform 0.2s;
    text-decoration: none;
    box-shadow: none;
}

.contact-links .cta:hover,
.contact-links .cta:focus {
    background: var(--accent-orange-hover);
    color: #121212;
    transform: scale(1.04);
    text-decoration: underline;
    outline: none;
}


.project-list,
.work-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    
    flex-direction: row; 
    align-items: stretch; 
    justify-content: flex-start;
}

.project-card,
.work-card {
    max-width: 100%;  
    width: 100%;
    align-self: stretch; 
}

.skills-grid {
    display: grid;
    grid-template-columns: 1fr; 
    gap: 1.5em;
    margin-top: 1em;
}

@media (max-width: 600px) {
    #hero h1 {
        font-size: 1.9rem; 
        line-height: 1.3;
    }
    .hero-pitch {
        font-size: 1.1em;
    }
}

@media (max-width: 767px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 768px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1000px) {
    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* Target the L'SPACE rover image specifically */
.card-media img[alt="L'SPACE Rover Design"] {
    object-fit: contain; 
    background: #2a2a2a; 
}