* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, sans-serif;
  background: linear-gradient(135deg, #000000 0%, #000000 60%, #001205 100%);
  color: white;
  height: 100vh;
  overflow: hidden;
  position: relative;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  background-color: transparent;
  position: relative;
  z-index: 10;
  height: 80px;
}

.nav-left {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.logo {
  height: 65px;
  width: auto;
  margin: 0;
  padding: 0;
}

.exchange-rates {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: white;
  margin-left: 0.5rem;
  padding-top: 0.5rem;
  font-size: 1.1em;
}

.rate {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.currency {
  font-weight: 600;
  width: 40px;
}

.values {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.value-container {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.trend-arrow {
  font-size: 0.8em;
  transition: color 0.3s ease;
}

.trend-arrow.up {
  color: #00ff00;
  transform: rotate(180deg);
}

.trend-arrow.down {
  color: #ff0000;
}

.nav-right {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding-right: 1rem;
}

.cabinet-btn {
  padding: 0.75rem 1.5rem;
  background-color: #e5e32c;
  border: none;
  color: #000;
  font-weight: 600;
  cursor: pointer;
  font-size: 1.1em;
  font-family: 'Roboto', sans-serif;
}

.menu-btn {
  width: 53px;
  height: 53px;
  background-color: #014946;
  border: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.menu-btn span {
  width: 26px;
  height: 2px;
  background-color: white;
}

main {
  position: relative;
  height: calc(100vh - 180px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  overflow: hidden;
}

.text-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-left: 15%;
  position: relative;
  z-index: 10;
}

h1 {
  font-size: 4.4rem;
  line-height: 1.1;
  text-align: center;
  margin-bottom: 25px;
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
}

.first-line {
  display: block;
  white-space: nowrap;
  margin-bottom: 5px;
}

.highlight {
  background: linear-gradient(to right, #e5e32c, #014946);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
  text-align: center;
}

.update-btn {
  display: inline-block;
  padding: 1.2rem 2.4rem;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  backdrop-filter: blur(10px);
  font-size: 1.2em;
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
}

.card-image {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
}

.card-image img {
  width: 400px;
  height: auto;
}

.updatepng-image {
  position: absolute;
  right: 0;
  top: 65%;
  transform: translateY(-40%);
  z-index: 2;
}

.updatepng-image img {
  width: 400px;
  height: auto;
}

.circle1-image {
  position: absolute;
  top: 10%;
  left: 0;
  z-index: 1;
}

.circle1-image img {
  height: auto;
  max-width: 100%;
}

.circle2-image {
  position: absolute;
  right: 25%;
  top: 0;
  z-index: 1;
}

.circle2-image img {
  height: auto;
  max-width: 100%;
}

.sphere1-image {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.sphere1-image img {
  height: auto;
  max-width: 100%;
}

.sphere2-image {
  position: absolute;
  right: 25%;
  bottom: -10%;
  z-index: 3;
}

.sphere2-image img {
  height: auto;
  max-width: 100%;
}

.light1-image {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
}

.light1-image img {
  height: auto;
  max-width: 100%;
}

footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to right, #000000, #30521f);
  background-blend-mode: overlay;
  z-index: 10;
}

footer::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 20vw;
  height: 2px;
  background: linear-gradient(to right, #ffffff, #add8e6);
}

.copyright {
  color: rgba(255, 255, 255, 0.7);
}

.social {
  color: white;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-right: auto;
  margin-left: 2%;
  position: relative;
  z-index: 11;
}

.social span {
  font-weight: 700;
  font-size: 1.25rem;
}

.social-links {
  display: flex;
  gap: 5px;
  list-style: none;
}

.social-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  background: white;
  border-radius: 25%;
  position: relative;
  z-index: 12;
}

/* Mobile styles for iPhone 14/15 Pro */
@media screen and (max-width: 430px) {
  body {
    background: linear-gradient(45deg, #001205 75%, #000000 100%, #000000 100%);
  }

  nav {
    padding: 0.75rem;
    height: 80px;
  }

  .logo {
    height: 80px;
    margin-left: -0.75rem;
  }

  .exchange-rates {
    display: none;
  }

  .nav-right {
    gap: 0.5rem;
    margin-right: -0.75rem;
  }

  .cabinet-btn,
  .menu-btn {
    width: 53px;
    height: 53px;
  }

  .cabinet-btn {
    padding: 0.5rem;
    font-size: 0.75em;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1;
    width: 85px;
  }

  main {
    height: calc(100vh - 180px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 0;
  }

  .text-content {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    transform: translateY(-15%);
  }

  h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
  }

  .update-btn {
    padding: 0.6rem 2.4rem;
  }

  .card-image {
    position: absolute;
    right: 0;
    bottom: 20%;
    top: 50%;
    transform: none;
  }

  .card-image img {
    width: 200px;
  }

  .updatepng-image {
    position: absolute;
    left: 0;
    top: 0;
    transform: translateX(-55%) scaleX(-1);
  }

  .updatepng-image img {
    width: 200px;
  }

  .circle2-image {
    display: none;
  }

  .circle1-image {
    position: absolute;
    top: 10%;
    left: 0;
    z-index: 1;
    transform: translateX(8%) rotate(38deg) translateY(35%);
  }

  .sphere1-image {
    position: absolute;
    top: 0;
    transform: translateX(75%) rotate(180deg) translateY(35%);
    z-index: 1;
  }

  .sphere2-image {
    position: absolute;
    right: 25%;
    bottom: -25%;
    z-index: 3;
  }

  .sphere2-image img {
    height: auto;
    max-width: 100%;
  }

  .sphere1-image img {
    height: auto;
    max-width: 100%;
  }

  .circle1-image img {
    height: auto;
    max-width: 100%;
  }

  .light1-image {
    position: absolute;
    bottom: 10%;
    top: auto;
    right: 0;
    z-index: 1;
    transform: none;
  }

  .light1-image img {
    width: 100%;
    max-width: 200px;
  }

  footer {
    height: 100px;
    padding: 1.5rem;
  }

  .social {
    gap: 0.75rem;
  }

  .social span {
    font-size: 0.75rem;
    white-space: nowrap;
  }

  .social-links {
    gap: 8px;
  }

  .social-icon {
    width: 28px;
    height: 28px;
  }

  .copyright {
    font-size: 0.875rem;
  }
}
