body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #f9f9f9;
    color: #333;
}

header {
    text-align: center;
    padding: 2rem 1rem;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

header h1 {
    margin: 0;
    font-size: 2rem;
}

header p {
    margin: 0.5rem 0 0;
    font-size: 0.9rem;
}

.home-btn {
  position: absolute;
  top: 10px;
  left: 16px;
  font-size: 0.9em;
  color: #333;
  text-decoration: none;
  opacity: 0.75;
  font-weight: bold;
  background: #fff;
  border-radius: 5px;
  padding: 2px 12px;
  box-shadow: 0 1px 5px rgba(0,0,0,0.25);
  transition: opacity 0.2s, box-shadow 0.5s;
  z-index: 102;
}
.home-btn:hover {
  opacity: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.420);
}


.container {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 2rem auto;
    gap: 2rem;
    padding: 0 1rem;
}

.section {
    background: #fff;
    flex: 1 1 calc(33% - 2rem);
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border-radius: 8px;
}

.section ul {
    list-style-type: none;
    padding: 0;
}

.section li {
    margin-bottom: 1rem;
}

.section li a {
    color: #0066cc;
    text-decoration: none;
}

.section li a:hover {
    text-decoration: underline;
}

footer {
    text-align: center;
    padding: 1rem;
    font-size: 0.8rem;
    color: #777;
    position: relative;
}

.footer-hosted {
    float: right;
    display: flex;
    align-items: center;
    gap: 0.4em;
    font-size: 0.95em;
    color: #555;
}

.footer-drena-logo {
    height: 1.2em;
    vertical-align: middle;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.666));
    margin: 0 0.2em;
}

.footer-drena-name {
    font-weight: bold;
    font-style: italic;
    filter: blur(0.5px);
}

.lang-switch {
  position: absolute;
  top: 10px;
  right: 16px;
  font-size: 0.9em;
  z-index: 100;
  user-select: none;
}
.lang-switch a {
  color: #333;
  text-decoration: none;
  margin: 0 2px;
  opacity: 0.7;
  cursor: pointer;
}
.lang-switch a.active {
  font-weight: bold;
  opacity: 1;
  text-decoration: underline;
}

body { position: relative; }
.lang-content { display: none; }
.lang-content.active { display: block; }

.toggle-projects-btn {
  margin: 0.5em 0 1em 0;
  padding: 0.3em 1em;
  font-size: 0.95em;
  border: 1px solid #bbb;
  background: #f5f5f5;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.2s;
}
.toggle-projects-btn:hover {
  background: #eaeaea;
}

.projects-list {
  margin-top: 1em;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1em;
}

.project-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
  padding: 0.7em 0.7em 1em 0.7em;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 180px;
}

.project-thumb {
  width: 100%;
  height: 90px;
  background: #dddddd;
  border-radius: 10px;
  margin-bottom: 0.3em;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.project-thumb-placeholder {
  color: #aaa;
  font-size: 0.9em;
  text-align: center;
}

.project-title {
  font-weight: bold;
  margin-bottom: 0.2em;
  text-align: center;
}

.project-desc {
  font-size: 0.9em;
  color: #555;
  text-align: center;
  min-height: 1.5em;
}

/* SLIDESHOW */

.slideshowModal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
  text-align: center;
}

.modalContent {
  margin-top: 4vh;
  max-height: 80%;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
  border-radius: 10px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  display: block;
}

.modal-caption {
  color: #fff;
  padding: 10px 20px;
  text-align: center;
}
.modal-caption h2 {
  margin: 0.5em 0 0.2em;
}
.modal-caption p {
  margin: 0;
  font-size: 0.95em;
  opacity: 0.85;
}

.close {
  position: absolute;
  top: 15px;
  right: 30px;
  color: white;
  font-size: 35px;
  cursor: pointer;
}

.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  font-size: 40px;
  color: white;
  padding: 16px;
  user-select: none;
  transform: translateY(-50%);
}

.prev {
  left: 20px;
}
.next {
  right: 20px;
}

/* img */

@media (max-width: 600px) {
    .section {
        flex: 1 1 100%;
    }
}
