header {
    background: #184267;
    color: #fff;
    padding: 3.5rem 1rem 2.5rem 1rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

header h1 {
    margin-bottom: 0.2em;
    font-size: 2.4em;
    font-weight: 600;
    letter-spacing: 0.5px;
}

header h2 {
    margin-bottom: 1.2em;
    font-size: 1.2em;
    font-weight: 400;
    color: #b8d4f1;
    font-style: italic;
}

header p {
    font-size: 1.1em;
    font-weight: 400;
    line-height: 1.6;
    max-width: 580px;
    margin: 0 auto;
    background: rgba(255,255,255,0.08);
    padding: 1.2em 1.8em;
    border-radius: 8px;
    border-left: 4px solid #326ba8;
}

nav {
    margin: 2rem 0 1.5rem 0;
    text-align: center;
}
nav a {
    color: #326ba8;
    text-decoration: none;
    margin: 0 1em;
    font-weight: bold;
    padding: 0.35em 1em;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
}
nav a:focus,
nav a:hover {
    color: #184267;
    background: #e9eaf4;
    outline: 2px solid #184267;
    outline-offset: 2px;
}
.active-nav {
    color: #184267;
    border-bottom: 2px solid #184267;
    background: #e9eaf4;
}
#langSelect {
  background: #326ba8;
  color: #fff;
  border-radius: 12px;
  border: none;
  font-size: 1.09em;
  padding: 0.3em 1em;
  margin-left: 0.7em;
  box-shadow: 0 3px 8px rgba(50,107,168,.13);
  cursor: pointer;
  font-weight: 500;
}
#langSelect:focus {
  outline: 2px solid #326ba8;
}

section {
    max-width: 800px;
    margin: 2.5em auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px #cbd5e1;
    padding: 2em 2.5em;
}
section:not(:last-child) {
    margin-bottom: 2em;
}
h2 {
    color: #184267;
    margin-top: 0;
}

/* Image styles for profile, book, IT expertise */
.profile-picture,
.expertise-img,
.book-cover {
    /* These three all float right and have similar size/shape */
    float: right;
    margin-left: 1.5em;
    max-width: 180px;
    max-height: 180px;
    min-width: 110px;
    border-radius: 12px;
    box-shadow: 0 0 8px #cbd5e1;
    background: #fff;
}
.profile-picture {
    border-radius: 50%;
    border: 4px solid #e9eaf4;
    box-shadow: 0 4px 18px #b1c1d1;
    max-width: 180px;
    max-height: 180px;
    min-width: 110px;
}

.book-cover {
    max-width: 180px;
    max-height: 230px;
    min-width: 120px;
    border-radius: 6px;
    margin-left: 1.3em;
}

.contact-block {
    background: #f2f8fc;
    padding: 20px;
    border-radius: 12px;
    margin-top: 16px;
}
.protected-email-link {
    direction: ltr;
    unicode-bidi: embed;
    color: #2867B2;
    text-decoration: underline;
}
.protected-email-link:focus {
    outline: 2px solid #184267;
    background: #e9eaf4;
    border-radius: 4px;
}

.linkedin-logo {
    margin-right: 0.6em;
    vertical-align: middle;
}
footer {
    text-align: center;
    padding: 1.5em 1em;
    /*background: #e9eaf4;*/
    color: #2d3142;
    font-size: 0.97em;
}
footer .legal-notice {
    margin-top: 2em;
}
.legal-notice {
    margin: 1.5em auto;
    padding: 1.1em 1.4em;
    max-width: 800px;
    background: #f7f8fa;
    border-radius: 10px;
    color: #444;
    font-size: 0.98em;
    box-shadow: 0 0 7px #e0e5eb;
}
.legal-notice h3 {
    margin-top: 0;
    color: #184267;
    font-size: 1.1em;
}
/* Profile layout */
.profile-container {
    display: flex;
    align-items: flex-start;
}
.profile-picture {
    margin-left: 0.2em;
    margin-right: 2em;
}
/* Minimal IT detail block (no box/border, just matches section/paragraph style) */
#itDetail {
    margin-top: 0.7em;
    padding: 0.1em 0 0.3em 0;
    background: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
}
#itDetail h3 {
    color: #184267;
    font-size: 1.08em;
    text-transform: none;
    margin-top: 1.2em;
}
#itDetail ul {
    margin-top: 0.5em;
}

.floating-contact-btn {
    position: fixed;
    bottom: 38px;
    right: 36px;
    z-index: 1100;
    background: #326ba8;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 1em 2.1em;
    font-size: 1.12em;
    font-weight: bold;
    box-shadow: 0 4px 20px #47567444;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s, transform 0.18s;
    opacity: 0.93;
}
.floating-contact-btn:hover, .floating-contact-btn:focus {
    background: #184267;
    box-shadow: 0 6px 20px #47567466;
    opacity: 1.0;
    transform: scale(1.05);
    outline: none;
}

/* Responsive tweaks */
@media (max-width: 700px) {
    .book-cover {
        float: none;
        display: block;
        margin: 1em auto 1em auto;
        max-width: 80vw;
        max-height: 220px;
    }
    .profile-container {
        flex-direction: column;
        align-items: flex-start;
    }
    .profile-picture {
        margin: 1em auto 1em auto;
        max-width: 120px;
        max-height: 120px;
        margin-left: 0;
        margin-right: 0;
    }
	.expertise-img {
		float: right;
		margin-left: 1.5em;
		max-width: 180px;
		max-height: 180px;
		min-width: 110px;
		border-radius: 12px;
		box-shadow: 0 0 8px #cbd5e1;
		background: #fff;
	}
	.legal-notice {
		margin: 1em auto 0.5em auto;
		padding: 0.3em 1em;
		max-width: 800px;
		background: none;      /* remove background */
		border-radius: 0;
		color: #aaa;           /* much lighter */
		font-size: 0.75em;     /* much smaller */
		box-shadow: none;
		text-align: center;
	}

	/* All headings, strong and emphasized inside legal notice */
	.legal-notice h3,
	.legal-notice strong,
	.legal-notice em {
		color: #aaa !important;
		font-size: 0.85em !important;
		font-weight: normal;
		letter-spacing: 0.2px;
	}

	.legal-notice h3 {
		margin-top: 0;
		margin-bottom: 0.7em;
	}

	.legal-notice br {
		line-height: 160%;
	}

	.legal-notice div {
		font-size: 1em;        /* inherit smaller size */
	}
}

.top-btn {
  position: absolute;
  right: 1.2em;
  top: 1.0em;
  background: #326ba8;
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(50,107,168,0.18);
  transition: background 0.2s, box-shadow 0.2s;
  z-index: 2;
  padding: 0;
}
.top-arrow-img {
  width: 22px;
  height: 22px;
  filter: invert(2) brightness(2); /* makes arrow white on blue circle */
}
.top-btn:hover, .top-btn:focus {
  background: #21487a;
  box-shadow: 0 4px 12px rgba(50,107,168,0.23);
}
section {
  position: relative; /* Ensures button is positioned over this section */
}



@media (max-width: 400px) {
    section {
        padding: 1em 0.6em;
    }
    nav a {
        padding: 0.25em 0.5em;
        font-size: 0.95em;
    }
	.legal-notice {
        font-size: 0.7em;
        padding: 0.3em 0.5em;
    }
    .legal-notice h3 {
        font-size: 0.78em !important;
    }
}
@media (max-width: 650px) {
    .floating-contact-btn {
        font-size: 1em;
        padding: 0.8em 1.4em;
        bottom: 24px;
        right: 14px;
    }
}
@media (max-width: 768px) {
    header {
        padding: 2.5rem 1rem 2rem 1rem;
    }
    header h1 {
        font-size: 2em;
        letter-spacing: 0.5px;
    }
    header h2 {
        font-size: 1.1em;
    }
    header p {
        font-size: 1em;
        padding: 1em 1.2em;
        max-width: 95%;
    }
}
@media (max-width: 580px) {
  #langSelect {
    font-size: 1em;
    min-width: 80px;
    padding: 0.2em 0.6em;
  }
  .lang-switcher-row {
    flex-direction: column;
    align-items: flex-end;
  }
}
