/* Colors
Primary (Dark)		#264653	Header/nav background, page footers
Secondary (Teal)	#2A9D8F	Buttons, links, hover states
Accent (Gold)		#E9C46A	Call-to-action buttons, icons, highlights
Neutral Light		#F4F1DE	Page background, content cards
Neutral Dark		#333333	Body text, subheadings, borders 

Primary (Forest)	#0F3D2E	Header/nav backgrounds, footers
Secondary (Teal)	#116147	Buttons, links, hover and focus states
Accent (Mint)		#A3D9B1	Call-to-action highlights, icon fills
Neutral Light		#F7F7F7	Page backgrounds, cards, content panels
Neutral Dark		#1F2937	Body text, subheadings, borders


https://de.pinterest.com/pin/duplex-decor--2251868557883300/
https://muffingroup.com/blog/green-color-palette/ (Flamingo Estate)

TODO: Search Font
*/

:root {
  --color-primary:   #0F3D2E;
  --color-secondary: #116147;
  --color-accent:    #A3D9B1;
  --color-bg-light:  #F7F7F7;
  --color-text:      #1F2937;
}

/* Reset & base */

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

html {
  font-family: sans-serif;
  line-height: 1.5;
}

/* Layout */

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header,
footer {
  background: var(--color-primary);
  color: var(--color-bg-light);
  padding: 1rem;
}

main {
  flex: 1;
  padding: 2rem;
}

/* Navigation */

nav ul {
  list-style: none;
  display: flex;
}

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

/* Utility */

.container {
  max-width: 1024px;
  margin: 0 auto;
}

/* Base nav styles */
.nav {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  position: relative;
}

.nav a {
  text-decoration: none;
  color: #fff;
  padding: 0.5rem 0.75rem;
  display: block;
}

/* Dropdown container */
.dropdown {
  position: relative;
}

/* Hide submenu by default */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;           /* just below the parent */
  left: 0;
  background: #222;    /* menu background */
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  min-width: 180px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  z-index: 100;
}

/* Style the submenu links */
.dropdown-menu li a {
  padding: 0.5rem 1rem;
  color: #fff;
}

.dropdown-menu li a:hover {
  background: #333;
}

/* Reveal submenu on hover */
.dropdown:hover .dropdown-menu {
  display: block;
}

/* Optional transition */
.dropdown-menu {
  transition: opacity 0.2s ease-in-out;
  opacity: 0;
  visibility: hidden;
}
.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
}

/* Style the button like your nav links */
.dropbtn {
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}

/* Add the down-pointing triangle */
.dropbtn::after {
  content: "\25BE";        /* Unicode black down triangle */
  font-size: 0.6em;        /* adjust to taste */
  margin-left: 0.3em;      
  line-height: 1;
}

/* Preserve your hover behavior */
.dropdown:hover .dropdown-menu {
  display: block;
}

header nav ul li {
  padding: 0.5rem 0.75rem;
}

.profile-box {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
  background: #f8f8f8;      /* optional card background */
  border-radius: 8px;       /* rounded corners */
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);  /* subtle shadow */
}

.profile-photo {
  width: 150px;           /* control size */
  height: 150px;
  object-fit: cover;      /* crop if needed */
  border-radius: 50%;     /* circular portrait */
  flex-shrink: 0;         /* keep its size on smaller screens */
}

.profile-text {
  flex: 1;                /* take remaining space */
}

.profile-text h2 {
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.profile-text p {
  line-height: 1.6;
  color: var(--color-text);
}

/* Responsive: stack vertically on narrow viewports */
@media (max-width: 600px) {
  .profile-box {
    flex-direction: column;
    text-align: center;
  }

  .profile-photo {
    margin-bottom: 1rem;
  }
}

/* Base typography */
body {
  font-size: 16px;
  line-height: 1.6;       /* improves readability */
  color: #1f2937;         /* your neutral‐dark text color */
}

/* Spacing for paragraphs and headings */
p {
  margin: 0 0 1.25rem;    /* bottom margin only */
}

h1, h2, h3, h4 {
  margin: 2rem 0 1rem;    /* top and bottom spacing */
  line-height: 1.2;
}

/* Projects Section */
.projects-section {
  padding: 3rem 1rem;
  margin-top: 3rem;
  background: var(--color-bg-light);
}

.projects-section h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  color: var(--color-text);
}

/* Responsive Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Individual Card */
.project-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;    /* locks all images to a 16:9 box */
  object-fit: cover;       /* crops overflow neatly */
  display: block;
}

.project-info {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-info h3 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  color: var(--color-primary);
}

.project-info p {
  flex: 1;
  margin: 0 0 1rem;
  line-height: 1.5;
  color: var(--color-text);
}

.btn-link {
  text-decoration: none;
  color: var(--color-secondary);
  font-weight: 500;
  align-self: flex-start;
  transition: color 0.2s;
}

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

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.projects-category {
  margin-top: 3rem;
}

.projects-category h3 {
  background: var(--color-secondary);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.projects-grid {
  display: grid;
  /* grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); */
  gap: 2rem;
  align-items: stretch;    /* ensures every grid cell is the same height in a row */
}

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

@media (min-width: 600px) and (max-width: 1023px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.project-filters {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.project-filters button {
  background: var(--color-bg-light);
  border: 1px solid var(--color-secondary);
  padding: 0.5rem 1rem;
  cursor: pointer;
}

.project-filters button.active {
  background: var(--color-secondary);
  color: #fff;
}