* {
  box-sizing: border-box;
}



header {
  text-align: center;
  padding: 32px;
  height: 100vh;
  background: url('../Resources/1690995093527.jpg') center top / cover no-repeat;
  /* Change Picture here */
  position: relative;
  color: white;
  display: flex;
  justify-content: center;
  align-items: end;
}


body{
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #E5EEF5;
}



/* Shadow overlays */
.top-shadow,
.bottom-shadow {
  position: absolute;
  left: 0;
  width: 100%;
  height: 100px;
  pointer-events: none;
  z-index: 2;
}

.top-shadow {
  top: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 1), transparent);
}

.bottom-shadow {
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 1), transparent);
}


.hero-overlay-top,
.hero-overlay-bottom {
  position: absolute;
  left: 0;
  width: 100%;
  height: 100px;
  z-index: 1;
  /* Behind nav and content */
  pointer-events: none;
}

.hero-overlay-top {
  top: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), transparent);
}

.hero-overlay-bottom {
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 40px;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 10;
}

.brand {
  font-weight: bold;
  font-size: 1.2rem;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
}

.nav-links a {
  color: white;
  text-decoration: none;
  margin-left: 25px;
  font-size: 0.95rem;
  transition: opacity 0.2s ease;
}

.nav-links a:hover {
  opacity: 0.8;
}

.icon {
  width: 18px;
  height: 18px;
  vertical-align: middle;
}

.subtitle {
  font-size: 0.9rem;
  letter-spacing: 0.4rem;
  color: #ccc;
  margin-top: 10px;
}

/* =================================== 
  update
=================================== */
.navbar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.nav-links {
  flex-wrap: wrap;
  margin-top: 10px;
}

.nav-links a {
  margin: 10px 10px 0 0;
}

/* ============================
  content 
=============================== */
header .content{
  width: 100%;
  /* background-color:red ; */
  display: flex;
  justify-content: space-between;
  align-items: end;
}



.text-container {
  background: rgba(0, 0, 0, 0.5);
  padding: 25px 35px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  max-width: 300px;
  width: fit-content;
}

.text-container h1 {
  font-size: 3rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.text-container::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background: white;
  margin: 10px 0;
  opacity: 0.7;
}

.subtitle {
  font-size: 0.9rem;
  letter-spacing: 0.4rem;
  color: #ccc;
}


.device-switch {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  display: flex;
  gap: 15px;
  background: rgba(0, 0, 0, 0.5);
  /* semi-transparent dark */
  padding: 10px 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(5px);
}

.device-switch button {
  background: #1e1e1e;
  color: white;
  border: 1px solid #444;
  padding: 8px 14px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.device-switch button:hover {
  background: #333;
}

.device-icon {
  width: 30px;
  height: 30px;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
  opacity: 0.85;
}



/* Reset layout width control */
body.desktop-mode,
body.mobile-mode {
  margin: 0 auto;
}

/* Desktop mode behaves normally (full width) */
body.desktop-mode {
  width: 100%;
  max-width: none;
  border: none;
}

/* Mobile mode simulates phone view */
body.mobile-mode {
  width: 390px;
  max-width: 100%;
  border: 1px solid #666;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.6);
}


#viewport {
  margin: 0 auto;
  transition: width 0.3s ease;
}

#viewport.desktop-mode {
  width: 100%;
  max-width: 100%;
}

#viewport.mobile-mode {
  width: 390px;
  max-width: 100%;
  border: 1px solid #666;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.6);
}

.pdf-container {
  background: rgba(0, 0, 0, 0.5);
  padding: 25px 35px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  width: 300px;
  color: white;
}

.cv-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.download-icon {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.download-icon:hover {
  transform: scale(1.1);
}


/* Responsive for mobile */
@media (max-width: 700px) {
  header {
    background: url('../Resources/1690995093527.jpg') center center / cover no-repeat;
  }
  header .content{
    flex-direction: column;
    gap: 30px;
    align-items: center;
  }
  .pdf-file{
    display: none;
  }
}