* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  background: #0a0a0a;
  color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
  overflow-y: auto;
  width: 100%;
  max-width: 100vw;
}

/* Floating Navbar */
.navbar {
  position: fixed;
  top: 20px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  background: rgba(26, 26, 26, 0.4);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  padding: 12px 30px;
  border: 1px solid #333;
  z-index: 1000;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  will-change: auto;
  contain: layout;
  margin: 0 auto;
  max-width: 600px;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.nav-center {
  display: flex;
  align-items: center;
  gap: 40px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  text-decoration: none;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-links a {
  color: #e0e0e0;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: #ffffff;
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 50%;
  background: #ffffff;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Auth buttons */
.auth-buttons {
  display: flex;
  gap: 15px;
  align-items: center;
}

.auth-btn {
  padding: 8px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.mobile-auth-buttons {
  display: none;
  flex-direction: column;
  gap: 10px;
}

.login-btn {
  color: #e0e0e0;
  border: 1px solid #333;
}

.login-btn:hover {
  color: #ffffff;
  border-color: #555;
}

.signup-btn {
  background: #ffffff;
  color: #000000;
  white-space: nowrap;
}

.signup-btn:hover {
  background: #f0f0f0;
  transform: translateY(-1px);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Section Styling */
.section {
  min-height: 100vh;
  width: 100%;
  position: relative;
}

.section h2 {
  font-size: 6rem;
  font-weight: 900;
  text-align: center;
  letter-spacing: -2px;
  opacity: 0.9;
  margin-bottom: 20px;
}

.section-info {
  font-size: 1.1rem;
  color: #999;
  font-style: italic;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Portfolio Section */
.portfolio-section {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1440px;
  align-items: center;
  justify-content: center;
  margin-top: 60px;
  margin-bottom: 60px;
}

.portfolio-section h3 {
  font-size: 3.5rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 40px;
}

.portfolio__item-wrapper {
  width: 85%;
  margin: 0 auto;
  max-width: 1200px;
  padding: 0 20px;
  z-index: 10;
}

.portfolio__item-wrapper + .portfolio__item-wrapper {
  margin-top: 40px;
}

.portfolio__item {
  display: flex;
  align-items: center;
  gap: 40px;
  background: rgba(26, 26, 26, 0.8);
  border: 1px solid #333;
  border-radius: 15px;
  padding: 40px;
  transition: all 0.3s ease;
}

.portfolio__item.column {
  width: 85%;
  margin: 0 auto;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
}

.portfolio__item.column img {
  max-width: 100%;
  height: auto;
}

.portfolio__item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(255, 255, 255, 0.1);
  border-color: #555;
}

.portfolio__item-content {
  flex: 3;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.portfolio__item-content > span:first-child {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 10px;
}

.portfolio__item-content p {
  font-size: 1.1rem;
  color: #e0e0e0;
  line-height: 1.6;
  margin: 0;
}

.portfolio__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.portfolio__tag {
  display: inline-block;
  padding: 6px 12px;
  background: hsl(10 100% 50% / 0.15);
  border: 1px solid hsl(10 100% 50% / 0.4);
  border-radius: 20px;
  font-size: 1rem;
  font-weight: 500;
  color: #ffffff;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.portfolio__tag:hover {
  background: hsl(10 100% 50% / 0.25);
  border-color: hsl(10 100% 50% / 0.6);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px hsl(10 100% 50% / 0.3);
}

.portfolio__item img {
  flex: 1;
  max-width: 300px;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Individual Section Colors */
#home {
  background: #0a0a0a;
  padding: 0;
  overflow: visible;
  position: relative;
  height: 100vh;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

#about {
  background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  position: relative;
  z-index: 10;
}

#services {
  background: linear-gradient(135deg, #0a0a0a 0%, #2a2a2a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  position: relative;
  z-index: 10;
}

#portfolio {
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  position: relative;
  z-index: 10;
}

#contact {
  background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
  padding: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  position: relative;
  z-index: 10;
}

/* Footer */
.footer {
  background: transparent;
  padding: 60px 20px 30px;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 10;
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
}

.footer-container {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 20px;
  padding: 40px;
  max-width: 800px;
  width: 100%;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 30px;
}

.footer-section h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #ffffff;
}

.footer-section p,
.footer-section a {
  color: #999;
  text-decoration: none;
  margin-bottom: 8px;
  display: block;
  transition: color 0.3s ease;
  font-size: 0.9rem;
}

.footer-section a:hover {
  color: #ffffff;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #333;
  color: #666;
  font-size: 0.85rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .navbar {
    top: 15px;
    padding: 10px 20px;
    left: 15px;
    right: 15px;
    max-width: 500px;
  }

  .nav-container {
    width: 100%;
  }

  .nav-center {
    gap: 20px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(26, 26, 26, 0.95);
    flex-direction: column;
    padding: 20px;
    border-radius: 15px;
    margin-top: 10px;
    gap: 15px;
  }

  .nav-links.active {
    display: flex;
  }

  .auth-buttons {
    display: none;
  }

  .mobile-auth-buttons {
    display: flex !important;
    flex-direction: column;
    gap: 10px;
  }
  .mobile-auth-buttons .auth-btn {
    width: 90%;
    text-align: center;
  }

  .mobile-auth-buttons .auth-btn.signup-btn {
    background: #ffffff;
    color: #000000;
  }

  .menu-toggle {
    display: block;
  }

  .section h1 {
    font-size: 3.5rem;
    padding: 0 20px;
  }

  .footer-container {
    margin: 0 10px;
    padding: 30px 20px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 20px;
  }

  .portfolio-section h3 {
    font-size: 2.5rem;
  }

  .portfolio__item {
    max-width: 85%;
    margin: 0 auto;
    /* display: block; */
  }
}

@media (max-width: 480px) {
  .section h1 {
    font-size: 2.5rem;
  }

  .navbar {
    padding: 8px 15px;
    left: 10px;
    right: 10px;
  }

  .logo {
    font-size: 1.3rem;
  }
}

/* Contact Section Keypad Styles */
.contact-main {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
  position: relative;
}

.contact-form-section {
  transition-property: opacity, filter;
  transition-duration: 0.26s;
  transition-delay: 0.26s;
  transition-timing-function: ease-out;
  width: 50ch;
  max-width: calc(100vw - 2rem);
}

.contact-form-section h1 {
  letter-spacing: -0.05rem;
  line-height: 1;
  font-size: 3rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
}

.contact-form-section p {
  opacity: 0.7;
  font-weight: 300;
  color: #e0e0e0;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
}

.newsletter-form input {
  flex: 1;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  outline: none;
  color: #ffffff;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.newsletter-form input:focus {
  border-color: #3498db;
  background: rgba(255, 255, 255, 0.15);
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.newsletter-form button {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  background: #3498db;
  border: none;
  cursor: pointer;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.newsletter-form button:hover {
  background: #2980b9;
  transform: translateY(-1px);
}

/* Contact Form Styling */
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 600px;
  margin: 0 auto;
}

.newsletter-form label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.newsletter-form input,
.newsletter-form textarea {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  outline: none;
  color: #ffffff;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
  resize: vertical;
}

.newsletter-form input:focus,
.newsletter-form textarea:focus {
  border-color: #3498db;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.newsletter-form input::placeholder,
.newsletter-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.newsletter-form textarea {
  min-height: 120px;
}

.newsletter-form button {
  padding: 1rem 2rem;
  border-radius: 8px;
  background: #3498db;
  border: none;
  cursor: pointer;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  transition: all 0.3s ease;
  align-self: flex-start;
}

.newsletter-form button:hover {
  background: #2980b9;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
}

.newsletter-form button:active {
  transform: translateY(0);
}

/* Keypad Styles */
.keypad {
  z-index: 10;
  position: relative;
  aspect-ratio: 400 / 310;
  display: flex;
  place-items: center;
  width: clamp(280px, 35vw, 400px);
  -webkit-tap-highlight-color: transparent;
  transition-property: translate, transform;
  transition-duration: 0.26s;
  transition-timing-function: ease-out;
  transform-style: preserve-3d;
  opacity: 0;
  transition-delay: 0.26s, 0.52s;
}

.keypad[data-loaded="true"] {
  opacity: 1;
}

.key {
  transform-style: preserve-3d;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  outline: none;
  --travel: 20;
}

.key[data-pressed="true"],
.key:active {
  .key__content {
    translate: 0 calc(var(--travel) * 1%);
  }
}

.key__content {
  width: 100%;
  display: inline-block;
  height: 100%;
  transition: translate 0.08s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  container-type: inline-size;
}

.key__text {
  height: 46%;
  width: 86%;
  position: absolute;
  font-size: 12cqi;
  z-index: 21;
  top: 5%;
  left: 0;
  color: hsl(0 0% 94%);
  translate: 8% 10%;
  transform: rotateX(36deg) rotateY(45deg) rotateX(-90deg) rotate(0deg);
  text-align: left;
  padding: 1ch;
  font-weight: 600;
}

.keypad__single {
  position: absolute;
  width: 40.5%;
  left: 54%;
  bottom: 36%;
  height: 46%;
  clip-path: polygon(
    0 0,
    54% 0,
    89% 24%,
    100% 70%,
    54% 100%,
    46% 100%,
    0 69%,
    12% 23%,
    47% 0%
  );
  mask: url(https://assets.codepen.io/605876/keypad-single.png?format=auto&quality=86)
    50% 50% / 100% 100%;
}

.keypad__single--left {
  left: 29.3%;
  bottom: 54.2%;
}

.keypad__single .key__text {
  font-size: 18cqi;
}

.keypad__single img {
  top: 0;
  opacity: 1;
  width: 96%;
  position: absolute;
  left: 50%;
  translate: -50% 1%;
}

.key__mask {
  width: 100%;
  height: 100%;
  display: inline-block;
}

.keypad__double {
  position: absolute;
  background: hsl(10 100% 50% / 0);
  width: 64%;
  height: 65%;
  left: 6%;
  bottom: 17.85%;
  clip-path: polygon(
    34% 0,
    93% 44%,
    101% 78%,
    71% 100%,
    66% 100%,
    0 52%,
    0 44%,
    7% 17%,
    30% 0
  );
  mask: url(https://assets.codepen.io/605876/keypad-double.png?format=auto&quality=86)
    50% 50% / 100% 100%;
}

.keypad__double img {
  top: 0;
  opacity: 1;
  width: 99%;
  position: absolute;
  left: 50%;
  translate: -50% 1%;
}

.key img {
  filter: hue-rotate(calc(var(--hue, 0) * 1deg)) saturate(var(--saturate, 1))
    brightness(var(--brightness, 1));
}

.keypad__base {
  position: absolute;
  bottom: 0;
  width: 100%;
}

.keypad__base img {
  transition: translate 0.12s ease-out;
  width: 100%;
}

/* Exploded state removed - keeping keys stable for interaction */

.key::after {
  z-index: -1;
  content: "";
  position: absolute;
  opacity: 0;
  inset: 0;
  transition-property: opacity;
  transition-duration: 0.26s;
  transition-timing-function: ease-out;
  background: repeating-linear-gradient(
    -45deg,
    #0000 0 5px,
    hsl(220 100% 70%) 5px 6px
  );
}

.key,
.keypad__base {
  transition-property: translate;
  transition-duration: 0.12s;
  transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Responsive Design for Contact */
@media (max-width: 768px) {
  .section h2 {
    font-size: 3.5rem;
  }

  .contact-main {
    flex-direction: column;
    padding: 1rem;
  }

  .keypad {
    order: 1;
    width: clamp(250px, 60vw, 350px);
  }

  .contact-form-section {
    order: 2;
    width: 100%;
    max-width: none;
  }

  .contact-form-section h1 {
    font-size: 2.5rem;
  }

  /* Exploded state removed for mobile */
}

@media (max-width: 480px) {
  .contact-form-section h1 {
    font-size: 2rem;
  }

  .newsletter-form {
    flex-direction: column;
    gap: 1rem;
    padding: 0 1rem;
  }

  .newsletter-form button {
    width: 100%;
    align-self: stretch;
  }

  .newsletter-form input,
  .newsletter-form textarea {
    padding: 0.8rem;
  }
}

/* Services Section Styles */
.service {
  padding: 30px 0;
  width: 100%;
}

.service .wrapper {
  margin-top: 20rem;
  margin: 0 auto;
  width: 85%;
  max-width: 1200px;
  padding: 0 15px;
}

.service-header h1 {
  margin-bottom: 60px;
  text-align: center;
  color: #ffffff;
  font-size: 6rem;
  font-weight: 900;
  letter-spacing: -2px;
  opacity: 0.9;
}

.service__list {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin-top: 60px;
}

.service__item {
  width: 100%;
  padding: 45px 25px;
  text-align: center;
  position: relative;
  background-color: #1a1a1a;
  border: 1px solid #333;
  border-radius: 0px;
  transition: all 0.3s ease;
  z-index: 10;
}

.service__item::before {
  position: absolute;
  content: "";
  left: -1px;
  bottom: -1px;
  width: 0;
  height: 0;
  border-bottom: 2px solid transparent;
  border-left: 2px solid transparent;
  transition: all 0.8s ease;
  border-radius: 0 0 0 0;
  z-index: 1;
}

.service__item::after {
  position: absolute;
  content: "";
  right: -1px;
  top: -1px;
  width: 0;
  height: 0;
  border-top: 2px solid transparent;
  border-right: 2px solid transparent;
  transition: all 0.8s ease;
  border-radius: 0 0 0 0;
  z-index: 1;
}

.service__item:hover:after,
.service__item:hover:before {
  width: calc(100%);
  height: calc(100%);
  border-color: #ffffff;
  border-radius: 0;
}

.service__item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

.service__icon-block {
  color: #ffffff;
  font-size: 28px;
  transition: color 0.8s ease;
  margin-bottom: 20px;
}

.service__item:hover .service__icon-block {
  color: #ffffff;
  transform: scale(1.1);
}

.service__item h3 {
  margin: 20px 0;
  font-size: 24px;
  color: #ffffff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.service__item p {
  color: #e0e0e0;
  font-size: 16px;
  line-height: 1.6;
  font-style: italic;
}

/* Services Section Responsive Design */
@media screen and (max-width: 991.98px) {
  .service__list {
    flex-wrap: wrap;
    gap: 20px;
  }
  .service__item:nth-child(n + 2) {
    max-width: 48.5%;
  }
  .service-header h1 {
    font-size: 4rem;
  }
}

@media screen and (max-width: 767.98px) {
  .service__item:nth-child(n + 2) {
    max-width: unset;
  }
  .service-header h1 {
    font-size: 3rem;
  }
  .service__item {
    padding: 30px 20px;
  }
  .service__icon-block {
    font-size: 40px;
  }
  .service__item h2 {
    font-size: 20px;
  }
  .service__item p {
    font-size: 14px;
  }
}

@media screen and (max-width: 480px) {
  .service-header h1 {
    font-size: 2.5rem;
  }
  .service__item {
    padding: 25px 15px;
  }
}

/* Portfolio Section Responsive Design */
@media screen and (max-width: 768px) {
  .portfolio__item {
    flex-direction: column;
    text-align: center;
    gap: 30px;
    padding: 30px 20px;
  }

  .portfolio__item-content {
    order: 1;
  }

  .portfolio__item img {
    order: 2;
    max-width: 250px;
    width: 100%;
  }

  .portfolio__item-content > span:first-child {
    font-size: 1.5rem;
  }

  .portfolio__item-content p {
    font-size: 1rem;
  }

  .portfolio__tags {
    justify-content: center;
    margin-top: 15px;
  }

  .portfolio__tag {
    font-size: 1rem;
    padding: 5px 10px;
  }
}

@media screen and (max-width: 480px) {
  .portfolio__item {
    padding: 40px 15px;
    gap: 20px;
  }

  .portfolio__item-content > span:first-child {
    font-size: 1.3rem;
  }

  .portfolio__item img {
    max-width: 200px;
  }

  .portfolio__tags {
    margin-top: 12px;
  }

  .portfolio__tag {
    font-size: 0.8rem;
    padding: 4px 8px;
  }
}

/* Smooth scroll enhancement */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* Hero Animation Styles */
@font-face {
  src: url("https://fonts.cdnfonts.com/css/pp-neue-montreal") format("woff2");
  font-family: "PP Neue Montreal", sans-serif;
  font-weight: 400;
}

/* Background noise effect */
#home::before {
  content: "";
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: transparent
    url("http://assets.iceable.com/img/noise-transparent.png") repeat 0 0;
  background-size: 300px 300px;
  animation: noise-animation 0.3s steps(5) infinite;
  opacity: 0.03;
  will-change: transform;
  z-index: 100;
  pointer-events: none;
}

@keyframes noise-animation {
  0% {
    transform: translate(0, 0);
  }

  10% {
    transform: translate(-2%, -3%);
  }

  20% {
    transform: translate(-4%, 2%);
  }

  30% {
    transform: translate(2%, -4%);
  }

  40% {
    transform: translate(-2%, 5%);
  }

  50% {
    transform: translate(-4%, 2%);
  }

  60% {
    transform: translate(3%, 0);
  }

  70% {
    transform: translate(0, 3%);
  }

  80% {
    transform: translate(-3%, 0);
  }

  90% {
    transform: translate(2%, 2%);
  }

  100% {
    transform: translate(1%, 0);
  }
}

.preloader-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 300px;
  overflow: hidden;
  z-index: 5;
}

.image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  visibility: hidden;
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center center;
}

/* Final image special handling */
#final-image {
  z-index: 10;
  max-width: 100vw;
  max-height: 100vh;
  overflow: hidden;
}

/* Big title */
.big-title {
  position: absolute;
  bottom: 5%;
  left: 2rem;
  color: white;
  z-index: 25;
  font-weight: 900;
  font-size: clamp(2.5rem, 14vh, 12rem);
  letter-spacing: -0.02em;
  line-height: 0.9;
  opacity: 0;
}

.title-line {
  overflow: hidden;
  height: 10rem;
}

.title-line span {
  display: block;
  transform: translateY(100%);
}

/* Grid overlay */
.grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100dvw;
  height: 100dvh;
  z-index: 5;
  /* Lower z-index so it doesn't block content */
  pointer-events: none;
  opacity: 0;
}

.grid-overlay-inner {
  width: 100%;
  height: 100%;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
}

.grid-column {
  flex: 1;
  height: 100%;
  border-left: 1px solid rgba(255, 255, 255, 0);
  border-right: 1px solid rgba(255, 255, 255, 0);
  margin: 0 0.5rem;
  /* 1rem gutter (0.5rem on each side) */
}

.grid-column:first-child {
  margin-left: 0;
}

.grid-column:last-child {
  margin-right: 0;
}

/* Dot icon restart button */
.restart-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s ease;
}

.restart-btn:hover {
  transform: rotate(45deg);
}

.dot-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 4px;
  transition: transform 0.3s ease;
}

.dot {
  width: 6px;
  height: 6px;
  background-color: white;
  border-radius: 50%;
  margin: auto;
}

/* Responsive adjustments for hero */
@media (max-width: 768px) {
  .preloader-container {
    width: 300px;
    height: 225px;
  }

  .big-title {
    font-size: clamp(2rem, 10vh, 8rem);
    left: 1rem;
  }

  .title-line {
    height: 6rem;
  }

  .header {
    padding: 1rem 0;
    font-size: 1.2rem;
  }

  .header-inner {
    padding: 0 1rem;
  }

  .header-middle {
    gap: 1.5rem;
  }

  .grid-overlay-inner {
    padding: 0 1rem;
  }

  .big-title {
    font-size: clamp(2rem, 10vh, 4rem);
  }

  .footer {
    padding: 1rem;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .preloader-container {
    width: 250px;
    height: 187px;
  }

  .big-title {
    font-size: clamp(1.2rem, 5vh, 4rem);
  }

  .title-line {
    height: 4rem;
  }

  .header {
    font-size: 1rem;
  }

  .header-middle {
    gap: 1rem;
  }
}
