* {
  margin: 0;
  padding: 0;
}

html { transition: background-color .3s ease; }

body {
  font: 16px/1.8 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
  "Microsoft YaHei", Helvetica, Arial, sans-serif,
  "Apple Color Emoji", "Segoe UI Emoji";
  text-align: center;
}

p { margin: 20px 0; }

ul, ol { list-style: none; }


/* Fonts
/* ================================================= */
@font-face {
  font-family: 'icomoon';
  src:
    url('../fonts/icomoon.ttf?mrs7x8') format('truetype'),
    url('../fonts/icomoon.woff?mrs7x8') format('woff'),
    url('../fonts/icomoon.svg?mrs7x8#icomoon') format('svg');
  font-weight: normal;
  font-style: normal;
}

[class^="icon-"], [class*=" icon-"] {
  /* use !important to prevent issues with browser extensions that change fonts */
  font-family: 'icomoon' !important;
  speak: none;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;

  /* Better Font Rendering =========== */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.icon-map-pin:before {
  content: "\e902";
}
.icon-moon:before {
  content: "\e900";
}
.icon-sun:before {
  content: "\e901";
}
.icon-quotes-left:before {
  content: "\e977";
}
.icon-quotes-right:before {
  content: "\e978";
}


/* Animation
/* ================================================= */
.animate-slide-in-down,
.animate-slide-in-up {
  position: relative;
  opacity: 0;
}

.animate-slide-in-down { top: -10px; }

.animate-slide-in-up { bottom: -10px; }

.no-js .animate-slide-in-down,
.no-js .animate-slide-in-up { opacity: 1; }

.no-js .animate-slide-in-down { top: 0; }

.no-js .animate-slide-in-up { bottom: 0; }

.animate-slide-in-left { left: -100%; }
.no-js .animate-slide-in-left { left: 0; }

.animate-slide-in-right { right: -100%; }
.no-js .animate-slide-in-right { right: 0; }


/* Headline
/* ================================================= */
.vi {
  margin: 60px auto 0;
  max-width: 780px;
}

@media (max-width: 767px) {
  .vi { margin-top: 30px; }
}


/* Quote
/* ================================================= */
.quote {
  position: relative;
  overflow: hidden;
  margin: 30px 20px;
}

h1 {
  margin-bottom: 10px;
  font-size: 28px;
}

@media (max-width: 767px) {
  h1 {
    font-size: 24px;
    margin-bottom: 5px;
  }
  
  .quote {
    margin: 20px 20px;
  }
}

.quote-line {
  display: block;
  position: relative;
  height: 1px;
  transition: all .3s ease;
}

.quote cite::before {
  content: "-";
  padding: 0 5px;
}

.quote-icon { position: absolute; }

.quote-icon.animate-slide-in-down,
.quote-icon.animate-slide-in-up { opacity: 0; }
.no-js .quote-icon.animate-slide-in-down,
.no-js .quote-icon.animate-slide-in-up { opacity: 1; }

.quote-icon-start { left: 0; }
.quote-icon-start.animate-slide-in-down { top: -10px; }
.no-js .quote-icon-start.animate-slide-in-down { top: 0; }

.quote-icon-end { right: 0; }
.quote-icon-end.animate-slide-in-up { bottom: -10px; }
.no-js .quote-icon-end.animate-slide-in-up { bottom: 0; }

.quote-content { margin: 30px auto 0; }

.quote-author { margin: 10px auto 30px; }


/* Links
/* ================================================= */
.links {
  margin-top: 40px;
  font-size: 14px;
}

.links a {
  display: inline-block;
  position: relative;
  margin-left: 10px;
  text-decoration: none;
  border-bottom: 1px dotted;
  transition: border .3s ease, color .3s ease;
}

.links a:hover { border-bottom: 1px solid; }

.links a:active { top: 1px !important; }

.links a:first-child { margin-left: 0; }


/* Location
/* ================================================= */
.location {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
}

.location-icon { font-size: 14px; }

.location-text {
  margin-left: 6px;
  font-size: 13px;
}

.relocating {
  opacity: 0;
  font-size: 13px;
  transition: all .3s ease;
}


/* LIGHT MODE
/* ================================================= */
html { background-color: white; }
body { color: #333; }
::selection { background: #222; color: white; }
h1 { color: #222; }
.quote { color: #666; }
.quote-icon { color: #ccc; }
.quote-line { background: #eee; }
a { color: #333; }
.links a { border-bottom-color: #999; }
.links a:hover { border-bottom-color: #333; }
.location { color: #666; }
.relocating { color: #ccc; }


/* DARK MODE
/* ================================================= */
@media (prefers-color-scheme: dark) {
  html { background: #121621; }
  body { color: #6C7486; }
  ::selection { background: #222; color: #99A3BA; }
  h1 { color: #E4ECFA; }
  .quote { color: #6C7486; }
  .quote-icon { color: #3F4656; }
  .quote-line { background: #242836; }
  a { color: #99A3BA; }
  .links a { border-bottom-color: #6C7486; }
  .links a:hover { color: #E4ECFA; border-bottom-color: #99A3BA; }
  .location { color: #6C7486; }
}


/* Logo
/* ================================================= */
.logo-container {
  margin-bottom: 15px;
  display: flex;
  justify-content: center;
}

.logo-image {
  width: 120px !important;
  height: 120px !important;
  min-width: 120px;
  min-height: 120px;
  border-radius: 50% !important;
  object-fit: cover;
  border: 3px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: transform .3s ease, box-shadow .3s ease;
}

.logo-image:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

@media (max-width: 767px) {
  .logo-container {
    margin-bottom: 10px;
  }
  
  .logo-image {
    width: 100px !important;
    height: 100px !important;
    min-width: 100px;
    min-height: 100px;
  }
}

@media (prefers-color-scheme: dark) {
  .logo-image {
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  }
  
  .logo-image:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  }
}


/* Button Links - Optimized Style
/* ================================================= */
.btn-link {
  display: inline-block;
  position: relative;
  margin: 0 8px;
  padding: 12px 28px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  border: 2px solid #ddd;
  border-radius: 25px;
  transition: all .3s ease;
  cursor: pointer;
  color: #333;
  background: white;
}

.btn-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
  color: #fff;
  border-color: #333;
  background: #333;
}

.btn-link:active {
  transform: translateY(0) !important;
  top: 0 !important;
}


/* Modal
/* ================================================= */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  padding: 0;
  box-sizing: border-box;
}

.modal-content {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 30px;
  width: 90%;
  max-width: 500px;
  border-radius: 15px;
  animation: slideDown 0.3s ease;
  box-sizing: border-box;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-content h3 {
  margin-bottom: 20px;
  text-align: center;
  font-size: 20px;
}

.modal-content img {
  display: block;
  margin: 20px auto;
  max-width: 100%;
  height: auto;
}

.close {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color .3s ease;
  line-height: 1;
  padding: 5px;
}

.close:hover,
.close:focus {
  opacity: 0.7;
}


/* Download Options
/* ================================================= */
.download-options {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

.download-option {
  display: block;
  padding: 15px 20px;
  text-align: center;
  text-decoration: none;
  border: 1px solid;
  border-radius: 8px;
  transition: all .3s ease;
}

.download-option:hover {
  transform: translateX(5px);
}

.download-option span {
  font-size: 16px;
  font-weight: 500;
}


/* Responsive
/* ================================================= */
@media (max-width: 767px) {
  .links {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    max-width: 400px;
    margin: 40px auto !important;
    padding: 0 20px;
  }
  
  .btn-link {
    margin: 0 !important;
    padding: 12px 15px;
    font-size: 14px;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }
  
  .modal-content {
    width: 90%;
    max-width: 400px;
    padding: 25px 20px;
  }
  
  .modal-content h3 {
    font-size: 18px;
    margin-bottom: 15px;
  }
  
  .modal-content img {
    max-width: 250px !important;
    margin: 15px auto !important;
  }
  
  .download-options {
    gap: 12px;
    margin-top: 15px;
  }
  
  .download-option {
    padding: 12px 15px;
  }
  
  .download-option span {
    font-size: 15px;
  }
}


/* LIGHT MODE - Modal & Buttons
/* ================================================= */

.modal-content {
  background-color: white;
  color: #333;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.close {
  color: #999;
}

.download-option {
  color: #333;
  border-color: #999;
  background: white;
}

.download-option:hover {
  border-color: #333;
  background: #f5f5f5;
}


/* DARK MODE - Modal & Buttons
/* ================================================= */
@media (prefers-color-scheme: dark) {
  .btn-link {
    color: #99A3BA !important;
    border-color: #3F4656 !important;
    background: #1a1f2e !important;
  }

  .btn-link:hover {
    color: #E4ECFA !important;
    border-color: #99A3BA !important;
    background: #242836 !important;
  }

  .modal-content {
    background-color: #1a1f2e;
    color: #E4ECFA;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  }

  .close {
    color: #6C7486;
  }

  .close:hover {
    color: #99A3BA;
  }

  .download-option {
    color: #99A3BA;
    border-color: #6C7486;
    background: #1a1f2e;
  }

  .download-option:hover {
    color: #E4ECFA;
    border-color: #99A3BA;
    background: #242836;
  }
}
