@font-face {
  font-family: "Impact Custom";
  src: url("assets/fonts/impact.TTF") format("truetype");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cochin Custom";
  src: url("assets/fonts/Cochin.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Futura Custom";
  src: url("assets/fonts/futura.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Lemon Custom";
  src: url("assets/fonts/LEMON.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Georgia Custom";
  src: url("assets/fonts/georgia.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  background-color: #eeeeee;
  color: #111;
  text-align: center;
  transition: background 0.4s ease, color 0.4s ease;
}

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.dark {
  background-color: #121212;
  color: #f1f1f1;
}

.toggle-container {
  position: absolute;
  top: 25px;
  right: 20px;
  z-index: 100;
}

.switch {
  font-size: 13px;
  position: relative;
  display: inline-block;
  width: 4em;
  height: 2.2em;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #00a6ff;
  transition: 0.4s;
  border-radius: 30px;
  overflow: hidden;
}

.slider:before {
  position: absolute;
  content: "";
  height: 1.2em;
  width: 1.2em;
  border-radius: 20px;
  left: 0.5em;
  bottom: 0.5em;
  transition: 0.4s cubic-bezier(0.81, -0.04, 0.38, 1.5);
  transform: translateX(1.8em);
  box-shadow: inset 15px -4px 0px 15px #ffcf48;
}

.switch input:checked + .slider {
  background-color: #2a2a2a;
}

.switch input:checked + .slider:before {
  transform: translateX(0em);
  box-shadow: inset 8px -4px 0px 0px #fff;
}

.star {
  background-color: #fff;
  border-radius: 50%;
  position: absolute;
  width: 5px;
  transition: all 0.4s;
  height: 5px;
  opacity: 0;
}

.star_1 {
  left: 2.5em;
  top: 0.5em;
}
.star_2 {
  left: 2.2em;
  top: 1.2em;
}
.star_3 {
  left: 3em;
  top: 0.9em;
}

.switch input:checked + .slider .star {
  opacity: 1;
}

.cloud {
  width: 3.5em;
  position: absolute;
  bottom: -1.4em;
  left: -1.1em;
  opacity: 1;
  transition: all 0.4s;
}

.switch input:checked + .slider .cloud {
  opacity: 0;
}

.email-icon {
  position: fixed;
  top: 15px;
  left: 13px;
  z-index: 99;
}

.email-icon-img {
  width: 50px;
  height: 50px;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.email-icon-img:hover {
  transform: scale(1.2);
  filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.3));
}

.main-container {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 3rem 1rem 2rem;
  animation: fadeIn 0.8s ease;
}

.logo {
  width: 120px;
  transform-style: preserve-3d;
  transition: transform 0.2s ease;
}
.logo:hover {
  transform: perspective(500px) rotateX(5deg) rotateY(-5deg) scale(1.05);
}

h1 {
  font-family: "Impact Custom", Impact, Arial, sans-serif;
  font-size: 2.5rem;
  margin: 1rem 0 0.5rem;
  font-weight: 900;
  letter-spacing: 1px;
}

.tagline {
  font-family: "Lemon Custom", Lemon, Arial, sans-serif;
  font-size: 0.85rem;
  margin-bottom: 2rem;
  font-weight: normal;
  letter-spacing: 0.01em;
  opacity: 0.75;
}

.buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.btn {
  padding: 0.8rem 1.8rem;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background 0.3s ease;
  border: none;
  font-family: "Futura Custom", Futura, Arial, sans-serif;
}

.btn.blue {
  background-color: #4fc3f7;
  color: #000;
}
.btn.blue:hover {
  background-color: #03a9f4;
  transform: scale(1.05);
}

.social-icons {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.social-icons a {
  display: inline-block;
  margin: 0 7px;
  transition: transform 0.2s ease;
}

.social-icons a img {
  width: 25px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.social-icons a:hover {
  transform: scale(1.3);
}

footer {
  font-family: "Georgia Custom", Georgia, serif;
  font-size: 0.9rem;
  opacity: 0.8;
  text-align: center;
  padding: 1rem 0 4rem 0;
  background: transparent;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media screen and (max-width: 480px) {
  .main-container {
    padding-top: 5rem;
  }
  .logo {
    width: 100px;
  }
}

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(18, 18, 18, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-bar {
  width: 160px;
  height: 8px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.12);
  position: relative;
}

.preloader-bar .bar {
  width: 60px;
  height: 100%;
  background: linear-gradient(90deg, #03a9f4, #4fc3f7, #03a9f4);
  border-radius: 6px;
  position: absolute;
  left: -60px;
  animation: moveBar 1.2s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes moveBar {
  0% {
    left: -60px;
  }
  60% {
    left: 120px;
  }
  100% {
    left: 160px;
  }
}

body.fonts-loading .btn {
  visibility: hidden;
  transition: none;
}

@media (hover: hover) {
  .email-icon-img:hover {
    transform: scale(1.2);
    filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.3));
  }
  .logo:hover {
    transform: perspective(500px) rotateX(5deg) rotateY(-5deg) scale(1.05);
  }
  .btn.blue:hover {
    background-color: #03a9f4;
    transform: scale(1.05);
  }
  .social-icons a:hover {
    transform: scale(1.3);
  }
}

.btn:active {
  transform: scale(0.98);
  filter: brightness(0.95);
}

.social-icons a:active {
  transform: scale(0.9);
}

.email-icon-img:active {
  transform: scale(1.1);
}
