/*────────────────────────────────────────────────────────
  ROOT RESET & VARIABLES
────────────────────────────────────────────────────────*/
:root {
  --font-sans: 'Helvetica Neue', Arial, sans-serif;
  --font-serif: serif;
  --bg: #f9f9f9;
  --text: #333;
  --accent: #007acc;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/*────────────────────────────────────────────────────────
  TYPOGRAPHY
────────────────────────────────────────────────────────*/
h2 {
  margin-bottom: 1rem;
}

h3 {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

p {
  margin: 1rem 0;
}

ul {
  list-style: disc;
  margin: 1rem 0 1rem 1.5rem;
}
ul li {
  margin-bottom: 0.5rem;
}

/*────────────────────────────────────────────────────────
  HEADER & NAVIGATION

header {
  background: var(--accent);
  color: white;
  padding: 1rem;
  text-align: center;
}
header {
  background-image: url('../images/floating_planets.gif');
  background-repeat: no-repeat;      
  background-position: center center;   
  background-size: contain;
  min-height: 300px;             
  color: white;
}
  
────────────────────────────────────────────────────────*/
header {
  background-image: url('../images/simple.png');    
  background-position: center center;   
  background-size: contain;
  min-height: 300px;             
  color: white;
}

.nav-list {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.nav-list a {
  color: white;
  font-weight: bold;
  padding: 0.5rem 0.75rem;
}

.nav-list a:hover,
.nav-list a.active {
  background: rgba(255,255,255,0.2);
  border-radius: 4px;
}

/*────────────────────────────────────────────────────────
  MAIN & FOOTER
────────────────────────────────────────────────────────*/
main {
  padding: 2rem;
}

footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  color: #666;
}

/*────────────────────────────────────────────────────────
  ABOUT PAGE
────────────────────────────────────────────────────────*/
.about {
  max-width: 960px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.about-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}

.about-image img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.about-content {
  flex: 1;
  min-width: 250px;
}

.download-cv a {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: white;
  border-radius: 4px;
  transition: opacity 0.2s;
}

.download-cv a:hover {
  opacity: 0.9;
}

.about-extra-image {
  margin-top: 2rem;
  text-align: center;
}

.about-extra-image img {
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/*────────────────────────────────────────────────────────
  GENERIC PROJECT CARDS & GRIDS
────────────────────────────────────────────────────────*/
.projects,
.coding-projects {
  max-width: 960px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.projects h2,
.coding-projects h2 {
  text-align: center;
  margin-top: 1.5rem;
}

.projects-grid,
.coding-projects .projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.2s;
  display: flex;
  flex-direction: column;
}

.card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.card h3 {
  margin: 0.75rem 1rem 0.5rem;
}

.card p {
  flex: 1;
  margin: 0 1rem 1rem;
  font-size: 0.95rem;
  line-height: 1.4;
}

.card:hover {
  transform: translateY(-4px);
}

/*────────────────────────────────────────────────────────
  PROJECT DETAIL LAYOUT & SLIDER
────────────────────────────────────────────────────────*/
.project-detail-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 960px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.project-detail-content {
  flex: 2 1 500px;
}

.project-detail-slider {
  flex: 1 1 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.slides {
  display: flex;
  transition: transform 0.3s ease;
}

.slide {
  min-width: 100%;
  box-sizing: border-box;
  text-align: center;
}

.slide figcaption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #555;
}

.slider-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  border: none;
  color: white;
  font-size: 1.5rem;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
  z-index: 10;
}

.slider-button.prev {
  left: 10px;
}

.slider-button.next {
  right: 10px;
}

/*────────────────────────────────────────────────────────
  CODE & PREFORMATTED TEXT
────────────────────────────────────────────────────────*/
pre {
  background: #f4f4f4;
  padding: 1rem;
  overflow-x: auto;
  border-radius: 4px;
}

code {
  font-family: monospace;
  background: #f9f9f9;
  padding: 2px 4px;
  border-radius: 4px;
}

/*────────────────────────────────────────────────────────
  RESEARCH PAGE (FORCE 3 COLUMNS)
────────────────────────────────────────────────────────*/
.research-projects {
  color: #000;
  padding: 3rem 1rem;
}

.stripe-primary {
  background: #ead9ea;
}
.stripe-secondary {
  background: #dacce7;
}
.stripe-secondary .btn-download img {
  width: 2.5rem;
  height: 2.5rem;
}

.stripe-secondary .research-col h4 {
  margin-bottom: 2rem;  
}
.stripe-secondary .research-col .btn-group {
  margin-top: 2rem;     
}

/* third stripe     */
.stripe-third {
  background: #ead9ea;
}
.stripe-third .btn-download img {
  width: 2.5rem;
  height: 2.5rem;
}

.stripe-third .research-col h4 {
  margin-bottom: 2rem;  
}
.stripe-third .btn-group {
  display: flex;             
  flex-direction: column;     
  align-items: center;        
  gap: 1rem;                
  margin-top: 2rem;           
}
/* ################### */
.research-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
  text-align: center;
}

.research-container h2 {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

/* exactly three equal columns */
.research-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;  
}

.research-col {
  padding: 0.5rem;
  display: flex;            
  flex-direction: column;   
  align-items: center;      
  text-align: left; 
  text-align: left;
}

.research-col h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.research-col h4 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.research-col p {
  margin-bottom: 1rem;
}

.status {
  font-style: italic;
  margin-bottom: 1rem;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color:#111D13;
  font-weight: bold;
  margin-top: 1rem;
  align-self: center;
}

.btn-download img {
  width: 1.25rem;
  height: 1.25rem;
  color:#111D13;
}

.btn-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 0.5rem;
  align-self: center;
  color:#111D13;
}

/*────────────────────────────────────────────────────────
 GITHUB BADGE
────────────────────────────────────────────────────────*/
/* Project header GitHub badge */
.project-meta {
  text-align: center;
  margin: 2rem 0 1rem;
}


.github-link:hover {
  opacity: 0.8;
}

.github-link {
  display: inline-flex;
  align-items: center;
  font-size: 1.5rem;
  color: var(--accent);
  text-decoration: none;
}

.github-icon {
  width: 5rem;
  height: 5rem;
  margin-right: 0.5rem;
  /* if your SVG has its own colors, you can remove fill:currentColor */
  fill: currentColor;
}