/* Base */
:root{
  --brand:#1a5b8f;
  --brand-600:#0f4c81;
  --accent:#38bdf8;
  --accent-light:#e0f5ff;
  --ink:#0b1324;
  --muted:#5c6b7e;
  --bg:#f8fafd;
  --card:#ffffff;
  --ring:rgba(56,189,248,.4);
  --shadow:0 10px 30px rgba(15,53,87,.07);
  --shadow-sm:0 2px 10px rgba(15,53,87,.04);
  --shadow-lg:0 20px 40px rgba(15,53,87,.12);
  --gradient:linear-gradient(135deg, #1e88e5, #1565c0);
  --transition:all 0.3s ease;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
html,body{height:100%}
body{
  margin:0;
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
  color:var(--ink);
  background:var(--bg);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  font-size:16px;
  opacity: 1;
  transition: opacity 0.3s ease;
}

img{max-width:100%;display:block}
a{
  color:var(--brand);
  text-decoration:none;
  transition:var(--transition);
}
a:hover{
  color:var(--brand-600);
  text-decoration:none;
}

h1,h2,h3{line-height:1.2;margin:0 0 1rem;letter-spacing:-0.01em}
h1{font-size:clamp(2.2rem,5vw,3.5rem);font-weight:800}
h2{font-size:clamp(1.8rem,3vw,2.5rem);font-weight:700}
h3{font-size:1.25rem;font-weight:600}
p{margin:0 0 1.5rem}
.lead{
  font-size:clamp(1.1rem,1.8vw,1.35rem);
  color:var(--muted);
  font-weight:300;
  margin-bottom:2rem;
}
.muted{color:var(--muted)}
.text-center{text-align:center}

.container{width:min(1180px,92%);margin-inline:auto}
.section{padding:6rem 0}
.section.alt{background:linear-gradient(to bottom, #f3f8fc, #f9fbfe)}

/* Accessibility */
.skip-link{
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--brand);
  color: #fff;
  padding: 8px 16px;
  z-index: 1001;
  transition: top 0.2s;
}

.skip-link:focus{
  top: 80px; /* Position below the fixed header */
}
.sr-only{position:absolute;width:1px;height=1px;padding=0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* Header */
.site-header {
  background: #fff;
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(15,53,87,.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.site-header:hover {
  background:rgba(255,255,255,.95);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:1rem 0;
}
.brand{
  display:flex;
  align-items:center;
  gap:1rem;
  text-decoration:none;
  transition:var(--transition);
}
.brand:hover {
  transform:translateY(-1px);
}
.brand-logo{
  width: 95px;  /* Increased from 48px */
  height: 44px;  /* Increased from 48px */
  border-radius:12px;
  box-shadow:var(--shadow);
  background:#fff;
  transition:var(--transition);
}
.brand:hover .brand-logo {
  box-shadow:var(--shadow-lg);
}
.brand-text{
  display:flex;
  flex-direction:column;
}
.brand-text strong {
  color:var(--ink);
  font-weight:700;
  font-size:1.15rem;
  line-height:1.3;
}
.brand-text .brand-sub{
  font-size:.85rem;
  color:var(--muted);
  font-weight:500;
}

/* Nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.site-nav a {
  font-weight: 600;
  position: relative;
  font-size: 0.95rem;
}
.site-nav a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}
.site-nav a:not(.btn):hover::after {
  width: 100%;
}
.site-nav .btn {
  margin-left: .5rem;
}
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: .4rem;
  border-radius: .5rem;
  cursor: pointer;
}
.nav-toggle:focus {
  outline: 3px solid var(--ring);
}

/* Mobile Nav */
@media (max-width: 980px) {
  .header-inner {
    padding: 0.5rem 0;
  }
  
  .brand-text strong {
    font-size: 1rem;
  }
  
  .brand-text .brand-sub {
    font-size: 0.75rem;
  }
  
  .brand-logo {
    width: 40px;
    height: 40px;
  }
  
  .nav-toggle {
    display: block;
    z-index: 1002;
  }
  
  .site-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    gap: 0;
    align-items: flex-start;
    padding: 5rem 2rem 2rem;
    box-shadow: -5px 0 30px rgba(15,53,87,.1);
    transition: right 0.3s ease;
    z-index: 1001;
    overflow-y: auto;
  }
  
  .site-nav.open {
    right: 0;
  }
  
  .site-nav a {
    display: block;
    width: 100%;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(15,53,87,.05);
  }
  
  .site-nav a.btn {
    margin: 1rem 0;
    width: 100%;
    text-align: center;
  }
  
  .language-selector {
    margin-left: 0;
    margin-top: 1rem;
    width: 100%;
  }
  
  .lang-btn {
    width: 100%;
    justify-content: space-between;
  }
  
  .language-dropdown {
    width: 100%;
    position: static;
    margin-top: 0.5rem;
    box-shadow: none;
    border: 1px solid rgba(15,53,87,.1);
  }
  
  .site-nav.open .language-dropdown {
    opacity: 1;
    transform: none;
    pointer-events: all;
  }
}

/* Prevent body scroll when mobile nav is open */
body.nav-open {
  overflow: hidden;
}

/* Ensure timeline is readable on mobile */
@media (max-width: 768px) {
  .timeline::before {
    left: 8px;
  }
  .t-card {
    margin-left: 20px;
    padding: 1rem;
  }
  .t-card::before {
    left: -18px;
    top: 18px;
    width: 12px;
    height: 12px;
  }
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:.85rem 1.5rem;
  border-radius:12px;
  font-weight:600;
  font-size:0.95rem;
  letter-spacing:.01em;
  border:1px solid transparent;
  transition:transform .2s ease, box-shadow .3s ease, background-color .2s ease;
  position:relative;
  overflow:hidden;
}
.btn:hover{
  transform:translateY(-2px);
  text-decoration:none;
}
.btn:active{transform:translateY(-1px)}

.btn-primary{
  background:var(--gradient);
  color:#fff;
  border-color:transparent;
  box-shadow:var(--shadow), 0 4px 12px rgba(21,101,192,0.25);
}
.btn-primary:hover {
  box-shadow:var(--shadow-lg), 0 6px 20px rgba(21,101,192,0.4);
}
.btn-outline{
  background:#fff;
  border-color:#deeeff;
  color:var(--brand);
  box-shadow:var(--shadow-sm);
}
.btn-outline:hover {
  border-color:var(--accent);
  box-shadow:var(--shadow);
}
.btn-ghost{
  background:rgba(255,255,255,.75);
  border-color:rgba(15,53,87,.1);
  backdrop-filter:saturate(180%) blur(8px);
}
.btn-ghost:hover {
  background:rgba(255,255,255,.95);
  border-color:rgba(15,53,87,.15);
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - 80px); /* Adjusted for fixed header */
  display: grid;
  align-items: center;
  background-image: linear-gradient(rgba(255,255,255,.75), rgba(255,255,255,.95)), url('assets/background.png');
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  padding-top: 20px; /* Add padding to account for fixed header */
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}
.hero-content{
  padding:6rem 0 5rem;
  max-width:650px;
}
.hero-actions{
  display:flex;
  gap:1rem;
  margin-top:2.5rem;
}
.hero-highlights{
  display:flex;
  flex-wrap:wrap;
  gap:1rem;
  margin:2rem 0 0;
  padding:0;
  list-style:none;
  color:var(--muted);
}
.hero-highlights li{
  padding:.5rem 1rem;
  background:rgba(255,255,255,.75);
  border-radius:30px;
  border:1px solid rgba(15,53,87,.08);
  font-weight:500;
  font-size:0.95rem;
  box-shadow:var(--shadow-sm);
  transition:var(--transition);
}
.hero-highlights li:hover {
  background:rgba(255,255,255,.95);
  transform:translateY(-2px);
  box-shadow:var(--shadow);
}

/* Section styling */
.section-header{
  margin-bottom:3rem;
  text-align:center;
  max-width:700px;
  margin-left:auto;
  margin-right:auto;
}
.section-header p {
  color:var(--muted);
  font-size:1.1rem;
  margin-top:-0.5rem;
}

/* Grids and cards */
.card-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(250px, 1fr));
  gap:1.5rem;
}
.card{
  background:#fff;
  border:1px solid rgba(15,53,87,.04);
  border-radius:16px;
  padding:1.5rem;
  box-shadow:var(--shadow);
  transition:var(--transition);
  height:100%;
}
.card:hover {
  transform:translateY(-5px);
  box-shadow:var(--shadow-lg);
  border-color:rgba(15,53,87,.08);
}
.card h3 {
  color:var(--brand-600);
  margin-bottom:0.75rem;
}

.fact-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(240px, 1fr));
  gap:1.5rem;
}
.fact{
  background:#fff;
  border:1px solid rgba(15,53,87,.04);
  border-radius:16px;
  padding:1.5rem;
  box-shadow:var(--shadow);
  transition:var(--transition);
  position:relative;
  overflow:hidden;
  height:100%;
}
.fact::before {
  content:'';
  position:absolute;
  top:0;
  left:0;
  width:5px;
  height:100%;
  background:var(--gradient);
  opacity:0;
  transition:var(--transition);
}
.fact:hover {
  transform:translateY(-3px);
  box-shadow:var(--shadow-lg);
}
.fact:hover::before {
  opacity:1;
}
.fact h3 {
  color:var(--brand-600);
  margin-bottom:0.5rem;
}

.two-col{
  display:grid;
  grid-template-columns:1.2fr 0.8fr;
  gap:3rem;
  align-items:start;
}

@media (max-width: 768px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  /* Ensure proper stacking in About section */
  #about .about-me-photo {
    order: -1; /* Move photo to top on mobile */
    margin-bottom: 1.5rem;
  }
  
  /* Ensure proper stacking in Teleradiology section */
  #telerad .two-col > div:nth-child(2) {
    order: -1; /* Move teleradiology portrait card to top on mobile */
    margin-bottom: 1.5rem;
  }
}

.about-me-grid {
  margin-top:2rem;
}
.about-me-photo img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
}
@media (max-width: 600px) {
  .about-me-grid {
    margin-top: 1.5rem;
    padding: 0 1rem;
  }
  .about-me-text {
    text-align: left;
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  .about-me-photo {
    order: -1; /* Move photo above text */
    text-align: center;
    margin-bottom: 1.5rem;
    width: 100%;
  }
  .about-me-photo img {
    max-width: 260px;
    width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
  }
  .about-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
  }
  /* General about-card styling */
  .about-card img {
    max-width: 280px;
    width: 100%;
    height: 240px !important; /* Reduced height from 320px to 240px */
    margin: 0 auto 1rem auto;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    display: block;
    object-fit: cover; /* This ensures the image covers the area without distortion */
  }
  .about-card .info {
    text-align: left;
    font-size: 1rem;
    width: 100%;
    padding: 0 1rem;
  }
  
  /* Make sure teleradiology section stacks properly */
  #telerad .two-col {
    display: flex;
    flex-direction: column;
  }
  
  #telerad .checklist {
    order: 2;
  }
}
.about-me-text h3 {
  color:var(--brand-600);
  margin-bottom:1.25rem;
  font-size:1.5rem;
}
.about-card{
  background:#fff;
  border:1px solid rgba(15,53,87,.04);
  border-radius:16px;
  padding:1.5rem;
  box-shadow:var(--shadow);
  display:grid;
  grid-template-columns:100px 1fr;
  gap:1.2rem;
  align-items:center;
  transition:var(--transition);
}
.about-card:hover {
  transform:translateY(-3px);
  box-shadow:var(--shadow-lg);
}
/* Original rule commented out to avoid conflicts
.about-card img{
  width:100px;
  height:100px;
  border-radius:16px;
  background:#fff;
  box-shadow:var(--shadow);
}
*/

/* Updated styling for teleradiology portrait */
#telerad .about-card img {
  width: 280px;
  height: 240px; /* Reduced height from 320px to 240px */
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
  object-fit: cover;
}
.about-card .info p{
  margin:.4rem 0;
  font-size:0.95rem;
}
.about-card .info strong {
  color:var(--brand-600);
}

/* Timeline */
.timeline{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap:1.5rem;
}
.timeline::before {
  content:'';
  position:absolute;
  top=0;
  left:16px;
  height:100%;
  width:2px;
  background:linear-gradient(to bottom, var(--accent), transparent);
}
.timeline li {
  position:relative;
}
.t-card{
  background:#fff;
  border:1px solid rgba(15,53,87,.04);
  border-radius:16px;
  padding:1.5rem;
  box-shadow:var(--shadow);
  transition:var(--transition);
  margin-left:35px;
  position:relative;
}
.t-card::before {
  content:'';
  position:absolute;
  left:-30px;
  top:24px;
  width:16px;
  height:16px;
  border-radius:50%;
  background:var(--gradient);
  box-shadow:0 0 0 5px rgba(56,189,248,.15);
}
.t-card:hover {
  transform:translateX(5px);
  box-shadow:var(--shadow-lg);
}
.t-card h3 {
  color:var(--brand-600);
  margin-bottom:0.5rem;
}
.cv-actions {
  margin-top:2rem;
  text-align:center;
}

/* Checklist */
.checklist{
  margin:0;
  padding:0;
  list-style:none;
}
.checklist li{
  padding-left:2rem;
  position:relative;
  margin:.75rem 0;
  transition:var(--transition);
}
.checklist li:hover {
  transform:translateX(5px);
}
.checklist li::before{
  content:"✓";
  position:absolute;
  left:0;
  top:0;
  color:#0b8a33;
  font-weight:700;
  background:rgba(11,138,51,.1);
  width:24px;
  height:24px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:14px;
}

/* Forms */
.form .form-row{
  display:grid;
  margin:1.25rem 0;
}
.form label{
  font-weight:600;
  margin-bottom:.5rem;
  color:var(--brand-600);
  font-size:0.95rem;
}
.form input,.form textarea,.form select{
  padding:1rem 1.2rem;
  border-radius:12px;
  border:1px solid #d8e3f3;
  background:#fff;
  outline:none;
  transition:var(--transition);
  font-family:inherit;
  font-size:1rem;
}
.form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231a5b8f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.form input:hover, .form textarea:hover, .form select:hover {
  border-color:#b8d1f3;
}
.form input:focus, .form textarea:focus, .form select:focus {
  border-color:#93c5fd;
  box-shadow:0 0 0 3px var(--ring);
}
.form-actions{
  display:flex;
  align-items:center;
  gap:1.5rem;
  margin-top:1.5rem;
}
.form-note{
  font-size:.9rem;
  color:var(--muted);
}
#form-status{
  margin-top:1rem;
  font-weight:600;
  padding:.5rem 1rem;
  border-radius:8px;
  background:var(--accent-light);
  opacity:0;
  transition:var(--transition);
}
#form-status.visible {
  opacity:1;
}

/* Contact section */
.contact-card {
  height:100%;
}
.contact-card h3 {
  color:var(--brand-600);
  margin-bottom:1rem;
}
.contact-card p {
  margin-bottom:1rem;
}
.contact-actions {
  display:flex;
  gap:0.75rem;
  margin-top:1.5rem;
}

/* Footer */
.site-footer{
  margin-top:3rem;
  background:var(--brand-600);
  color:#dce7f8;
  padding:1.5rem 0;
}
.footer-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
}
.site-footer a{
  color:#dce7f8;
  text-decoration:none;
  margin:0 0.75rem;
  transition:var(--transition);
}
.site-footer a:hover{
  color:#fff;
  text-decoration:none;
}

#back-to-top{
  cursor:pointer;
  position:relative;
  padding-right:1.2rem;
}
#back-to-top::after {
  content:'↑';
  position:absolute;
  right:0;
  top:0;
  transition:var(--transition);
}
#back-to-top:hover::after {
  transform:translateY(-3px);
}

/* Publications */
.publications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.publication {
  background: #fff;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.publication:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.publication h3 {
  color: var(--brand-600);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(15,53,87,.08);
}

.publication-list {
  margin: 0;
  padding-left: 1.25rem;
}

.publication-list li {
  margin-bottom: 1rem;
  line-height: 1.5;
}

.publication-list strong {
  font-weight: 600;
}

.publication-list em {
  font-style: italic;
  color: var(--brand);
}

/* Scroll to top button */
.scroll-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  z-index: 999; /* Below the header z-index */
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  background: var(--brand-600);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.scroll-top-btn:active {
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .scroll-top-btn {
    width: 40px;
    height: 40px;
    bottom: 20px;
    right: 20px;
    font-size: 1rem;
  }
}

.hero {
  position: relative;
  min-height: calc(100vh - 80px); /* Adjusted for fixed header */
  display: grid;
  align-items: center;
  background-image: linear-gradient(rgba(255,255,255,.75), rgba(255,255,255,.95)), url('assets/background.png');
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  padding-top: 20px; /* Add padding to account for fixed header */
}

/* Language selector */
.language-selector {
  position: relative;
  margin-left: 0.5rem;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 1px solid rgba(15,53,87,.1);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand);
  cursor: pointer;
  transition: var(--transition);
}

.lang-btn:hover {
  background: rgba(15,53,87,.03);
}

.flag-icon {
  width: 18px;
  height: 12px;
  display: inline-block;
  margin-right: 0.35rem;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 2px;
  box-shadow: 0 0 1px rgba(0,0,0,0.3);
  vertical-align: middle; /* Ensures proper alignment */
}

.flag-en {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'%3E%3Cclippath id='a'%3E%3Cpath d='M0 0v30h60V0z'/%3E%3C/clippath%3E%3Cclippath id='b'%3E%3Cpath d='M30 15h30v15zv15H0zH0V0zV0h30z'/%3E%3C/clippath%3E%3Cg clip-path='url(%23a)'%3E%3Cpath d='M0 0v30h60V0z' fill='%23012169'/%3E%3Cpath d='M0 0l60 30m0-30L0 30' stroke='%23fff' stroke-width='6'/%3E%3Cpath d='M0 0l60 30m0-30L0 30' clip-path='url(%23b)' stroke='%23C8102E' stroke-width='4'/%3E%3Cpath d='M30 0v30M0 15h60' stroke='%23fff' stroke-width='10'/%3E%3Cpath d='M30 0v30M0 15h60' stroke='%23C8102E' stroke-width='6'/%3E%3C/g%3E%3C/svg%3E");
}

.flag-de {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 5 3'%3E%3Cpath d='M0 0h5v1H0z' fill='%23000'/%3E%3Cpath d='M0 1h5v1H0z' fill='%23D00'/%3E%3Cpath d='M0 2h5v1H0z' fill='%23FFCE00'/%3E%3C/svg%3E");
}

.flag-bs {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 8'%3E%3Cpath fill='%23002395' d='M0 0h16v8H0z'/%3E%3Cpath d='M4.24 0h8v8z' fill='%23FECB00'/%3E%3Cpath d='M16 8V0H5l.75.4.75.4.77.42.76.44.74.47.71.5.69.52.65.55.62.57.59.6.54.63.5.65.45.67.39.7.34.71.28.73.22.75.15.76.08.77v.01l-.08.77-.15.76-.22.75-.28.73-.34.71-.39.7-.45.67-.5.65-.54.63-.59.6-.62.57-.65.55-.69.52-.71.5-.74.47-.76.44-.77.42-.75.4L5 8h11z' fill='%23fff'/%3E%3Cg transform='translate(5.5,4)'%3E%3Cg id='c'%3E%3Cpath id='t' d='M0,0v1h0.5' transform='translate(0,-1)rotate(18)'/%3E%3Cuse transform='scale(-1,1)' href='%23t'/%3E%3C/g%3E%3Cuse transform='rotate(72)' href='%23c'/%3E%3Cuse transform='rotate(144)' href='%23c'/%3E%3Cuse transform='rotate(216)' href='%23c'/%3E%3Cuse transform='rotate(288)' href='%23c'/%3E%3C/g%3E%3C/svg%3E");
}

.current-flag {
  margin-right: 0.35rem;
}

.language-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
  min-width: 140px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 100;
}

.language-selector.active .language-dropdown {
  opacity: 1;
  transform: translateY(5px);
  pointer-events: all;
}

.language-dropdown a {
  display: flex; /* Use flexbox for alignment */
  align-items: center; /* Vertically align items */
  padding: 0.75rem 1rem;
  color: var(--ink);
  text-decoration: none;
  transition: background 0.2s;
}

.language-dropdown a:hover {
  background: rgba(15, 53, 87, 0.05);
}

.language-dropdown a.active {
  background: rgba(56, 189, 248, 0.1);
  font-weight: 600;
}

.languages-wrapper {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.show-desktop {
  display: none;
}

@media (max-width: 600px) {
  .show-desktop {
    display: block;
  }
  
  .about-me-grid {
    margin-top: 1.5rem;
    padding: 0 1rem;
  }
  .about-me-text {
    text-align: left;
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  .about-me-photo {
    order: -1; /* Move photo above text */
    text-align: center;
    margin-bottom: 1.5rem;
    width: 100%;
  }
  .about-me-photo img {
    max-width: 260px;
    width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
  }
}
