
/* =======================================================
   VARIABLES – Theme Colors & Reusable Values
======================================================= */
:root {
  /* Light Mode Defaults */
  --background-color: 245, 247, 250;       /* #f5f7fa */
  --text-color: 30, 30, 30;                /* #1e1e1e */
  --text-muted: 80, 80, 80;

  --accent-color: 59, 130, 246;            /* #3b82f6 */
  --accent-color-text: 255, 255, 255;      /* #ffffff */

  --intro-bg: 227, 240, 255;               /* #e3f0ff */
  --section-bg: 240, 240, 240;

  --card-bg: 255, 255, 255;                /* #ffffff */
  --card-shadow: 0, 0, 0;

  --tag-bg: 209, 232, 255;                 /* #d1e8ff */
  --tag-text: 21, 90, 138;                 /* #155a8a */
  --skill-bg: 209, 232, 255;                 /* #d1e8ff */
  --skill-text: 21, 90, 138;                 /* #155a8a */

  --button-bg: 59, 130, 246;               /* #3b82f6 */
  --button-bg-focus: 37, 99, 235;          /* #2563eb */
  --button-text: 255, 255, 255;            /* #ffffff */

  --footer-text: 85, 85, 85;               /* #555555 */

  --link-color: 37, 99, 235;               /* #2563eb */

  --font-stack: system-ui, sans-serif;
  --max-width: 960px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background-color: 18, 18, 18;          /* #121212 */
    --text-color: 237, 237, 237;             /* #ededed */
    --text-muted: 180, 180, 180;

    --accent-color: 96, 165, 250;            /* #60a5fa */
    --accent-color-text: 255, 255, 255;      /* #ffffff */

    --intro-bg: 30, 42, 58;                 /* #1e2a3a */
    --section-bg: 30, 30, 30;

    --card-bg: 27, 27, 27;                   /* #1b1b1b */
    --card-shadow: 255, 255, 255;

    --tag-bg: 31, 47, 63;                    /* #1f2f3f */
    --tag-text: 147, 197, 253;               /* #93c5fd */
    --skill-bg: 47, 59, 82;
    --skill-text: 227, 246, 253;               

    --button-bg: 96, 165, 250;               /* #60a5fa */
    --button-bg-focus: 59, 130, 246;         /* #3b82f6 */
    --button-text: 18, 18, 18;               /* #121212 */

    --footer-text: 136, 136, 136;            /* #888888 */

    --link-color: 147, 197, 253;             /* #93c5fd */

    --font-stack: system-ui, sans-serif;
    --max-width: 960px;
  }
}


/* =======================================================
   RESET – Normalize Elements Across Browsers
======================================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
    padding: 0;
}

a {
    text-decoration: none;
    color: rgb(var(--link-color));
}

body {
    font-family: var(--font-stack);
    background: rgb(var(--background-color));
    color: rgb(var(--text-color));
    line-height: 1.6;
}

/* =======================================================
   LAYOUT – Container, Header, Nav, Footer
======================================================= */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem 1rem;
}

header {
    text-align: center;
    margin-bottom: 2rem;
}

header h1 {
    font-size: 2.5rem;
   /* margin-bottom: 0.25rem;*/ 
}

.site-header{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 0rem;
}
.site-header-logo {
  max-height: 2rem;   
  width: auto;        
  flex-shrink: 0; 
  color: rgb(var(--text-color));
}
.site-header-content {
  display: flex;
  flex-direction: column;
}
.site-name {
    font-size: 1.2rem;
    color: rgb(var(--text-color));
    font-weight: bold;
    margin: 0;
    padding: 0;
    line-height: 1;
}
.role {
    color: rgb(var(--text-color));
    font-weight: normal;
    line-height: 1;
    margin: 0;
    padding: 0;
    font-size: 1rem;
    /*font-style: italic;*/
}
.tagline {
    color: rgb(var(--accent-color));
    font-style: italic;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}
html {
  scroll-behavior: smooth;
}
.navbar {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    row-gap: 0;
    flex-wrap: wrap;
    margin-top: 1rem;
}
.navbar li {
  position: relative;
}
.navbar a {
    color: rgb(var(--text-color));
    font-weight: 600;
    transition: color 0.3s;
    text-decoration: none;
    padding: .0rem 0.5rem;
    display: block;
    cursor: pointer;
}

.navbar a:hover,
.navbar a:focus {
    color: rgb(var(--accent-color));
    background-color: rgba(var(--text-color),0.1);
  border-radius: 4px;
}

/* Hides the dropdown menu by default */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: rgb(var(--card-bg));
    border-radius: 4px;
    padding: 10px;
    min-width: 400px;
    max-width: 90vw;
    overflow-x: auto;
    box-shadow: 0 4px 6px rgba(var(--card-shadow), 0.1);
    z-index: 1000;
}

/* Shows the menu only when parent has .open */
.dropdown.open > .dropdown-menu {
    display: block;
}

.dropdown-menu a {
  color: rgba(var(--text-color));
  padding: 0.5em ;
   max-width: 90vw;
  display: flex;
  align-items: center;
  gap: 1rem;
  text-align: left;
  text-decoration: none;
  font-size: 0.9rem;
}

.dropdown-menu a:hover {
  background-color: rgba(var(--text-color),0.1);
}


.dropdown-menu a img {
    display: cover;
    width: 3rem;
    height: 3rem;
    border-radius: 25%;
    border: solid rgb(var(--accent-color)) 1px;
    margin:0;
}
@media (max-width: 600px) {
    .dropdown-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: rgb(var(--card-bg));
        border-radius: 4px;
        padding: 10px;
        min-width: 200px;
        max-width: 90vw;
        overflow-x: auto;
        box-shadow: 0 4px 6px rgba(var(--card-shadow), 0.1);
        z-index: 1000;
    }
    .dropdown-menu a img {
    display: none;
}
}

/* =======================================================
   SECTIONS – About, Projects, Contact
======================================================= */
section {
    margin-bottom: 3rem;
    padding: 1em 0 2em;
}

section h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    text-align: left;
    border-bottom: 4px solid rgb(var(--accent-color));
}

/* =======================================================
   INTRO SECTION – About Me
======================================================= */
.intro {
    margin-bottom: 3rem;
    padding: 2rem 1rem;
    background-color: rgb(var(--intro-bg));
    border-radius: 8px;
}

.intro-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.intro-photo {
    width: 300px;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    border: 3px solid rgb(var(--accent-color));
    margin-left: auto;
    margin-right: auto;
}

.intro-text {
    flex: 1;
    min-width: 250px;
}

.intro-text h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: rgb(var(--accent-color));
}

.intro-text p {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: rgb(var(--text-color));
}

/* =======================================================
   PROJECT GRID – Layout Container
======================================================= */
.project-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.project-grid.compact{
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.project-grid.list {
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* =======================================================
   PROJECT CARDs — For Featured and Compact Cards
======================================================= */
.project-card {
    background-color: rgb(var(--card-bg));
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(var(--card-shadow),0.05);
    transition: box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.project-card:hover, .project-card.compact:hover {
    box-shadow: 0 4px 14px rgba(var(--card-shadow),0.1);
}

.project-card.compact {
    background-color: rgb(var(--card-bg));
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(var(--card-shadow),0.05);
    transition: box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.project-grid.compact p.summary, .project-grid.list p.summary{
display: none;
}



/* =======================================================
   THUMBNAILS – Image Styles
======================================================= */
.project-thumbnail {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    object-position: top center;
}

.project-card.compact .project-thumbnail, .project-card.list .project-thumnbail {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    object-position: top center;
}

/* =======================================================
   CONTENT – Text, Tags, Buttons
======================================================= */
.project-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.project-content h3 {
    font-size: 1rem;
    margin-bottom: 0;
}

.project-content p.project-role {
   color: rgb(var(--text-muted)); 
   font-style: italic;
   font-size: 0.9rem;
   margin-bottom: 0.5rem;

}

.project-content p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag-list li {
    background: rgb(var(--tag-bg));
    color: rgb(var(--tag-text));
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
    border-radius: 12px;
    white-space: nowrap;
}
.project-grid.list .tag-list {
    display: none;
}
/* =======================================================
   BUTTON – PDF Link Style
======================================================= */
.button-row {
    display: flex;
    gap: 10px; /* space between buttons */
    align-items: center; /* optional: aligns vertically if heights vary */
    align-self: start;
    margin:auto 0 0;
    width: 100%;
    justify-content: space-between;
}

.button {
  background-color: rgb(var(--button-bg));
  color: rgb(var(--button-text));
  padding: 0.5rem 1rem;
  border-radius: 5px;
  font-weight: bold;
  font-size: 0.9rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
  
}

.button:hover,
.button:focus {
    background-color: rgb(var(--button-bg-focus));
    transform: translateY(-1px);
    outline: none;
    cursor: pointer;
}
/*a.download {
     align-self: end;
}*/
span.icon {
    display: inline-block;          
    width: 1.0rem;                    
    height: 1.0rem;
    vertical-align: middle;            
    margin-right: 0.4rem; 
    vertical-align: text-top;
          
}
/* =======================================================
   FOOTER
======================================================= */
footer {
    text-align: center;
    font-size: 0.875rem;
    color: rgb(var(--footer-text));
    margin-top: 3rem;
}

footer .contact {
    margin-bottom: 0.5rem;
}