:root {
  --primary-color: #ffffff;
  --secondary-color: #111111;
  --accent-color: #646cff;
  --text-color: #ffffff;
  --spacing-unit: 2rem;
  --font-light: 300;
  --font-regular: 400;
  --font-black: 900;
  --glow-color: rgba(255, 255, 255, 0.1);
  --transition-duration: 0.6s;
}

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

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--secondary-color);
  font-weight: var(--font-light);
  overflow: hidden;
  height: 100vh;
}

.container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-unit);
}

.background-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  opacity: 0.2;
  pointer-events: none;
  overflow: hidden;
}

.wave {
  position: absolute;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(40, 1fr);
  grid-template-rows: repeat(25, 1fr);
  animation: waveFlow 10s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

.square {
  width: 100%;
  height: 100%;
  background: var(--primary-color);
  transform: scale(0);
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, opacity;
}

.main-content {
  position: relative;
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  z-index: 1;
  display: none;
  cursor: pointer;
}

.expanded .overlay {
  display: block;
}

.hero-title-container {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  transition: transform var(--transition-duration) cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(0);
  z-index: 2;
}

.expanded .hero-title-container {
  transform: translateX(-40%);
}

.hero-title {
  font-size: 12vw;
  font-weight: var(--font-black);
  line-height: 0.9;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  position: relative;
  cursor: pointer;
  transition: all var(--transition-duration) cubic-bezier(0.4, 0, 0.2, 1);
  animation: textGlow 3s ease-in-out infinite;
  text-shadow: 0 0 30px var(--glow-color),
               0 0 60px var(--glow-color),
               0 0 90px var(--glow-color);
  z-index: 2;
  margin: 0;
  padding: 0;
}

.hero-title.minimized {
  font-size: 1.2vw;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  font-weight: var(--font-light);
  letter-spacing: 0.5px;
  margin-top: 3rem;
}

.section {
  padding: calc(var(--spacing-unit) * 3) 0;
}

.services {
  display: grid;
  grid-template-columns: 1fr;
  gap: calc(var(--spacing-unit) * 2);
}

.service-item {
  padding: var(--spacing-unit) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease;
}

.service-item h3 {
  font-size: 1.8rem;
  font-weight: var(--font-light);
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}

.service-item p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  max-width: 500px;
}

.service-item:hover {
  transform: translateX(20px);
}

.info-panel {
  position: absolute;
  top: 0;
  right: -100%;
  width: 85%;
  height: 100%;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  padding: 2rem;
  transition: right var(--transition-duration) cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  overflow-x: auto;
  overflow-y: auto;
  z-index: 3;
}

.info-panel.visible {
  right: 0;
}

.info-container {
  display: flex;
  gap: 2rem;
  padding: 0 2rem;
  width: 100%;
  justify-content: space-between;
}

.info-section {
  flex: 1;
  min-width: 0;
  max-width: none;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, height var(--transition-duration) cubic-bezier(0.4, 0, 0.2, 1);
  height: 300px;
}

.info-section:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.info-section.section-expanded {
  height: 400px;
}

.section-front, .section-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-duration) cubic-bezier(0.4, 0, 0.2, 1);
}

.section-front {
  transform: translateX(0);
}

.section-back {
  transform: translateX(100%);
  background: rgba(255, 255, 255, 0.05);
  padding-bottom: 60px;
}

.section-expanded .section-front {
  transform: translateX(-100%);
}

.section-expanded .section-back {
  transform: translateX(0);
}

.info-section h3 {
  font-size: 1.8rem;
  font-weight: var(--font-light);
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}

.info-section p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  line-height: 1.6;
  flex-grow: 1;
  overflow-y: auto;
  padding-right: 0.5rem;
  padding-bottom: 10px;
  position: relative;
  max-height: 60%;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.back-button {
  align-self: flex-end;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--primary-color);
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 1rem;
}

.back-button:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

@keyframes waveFlow {
  0% {
    transform: translateY(0) scale(1);
  }
  25% {
    transform: translateY(-10px) scale(1.05);
  }
  50% {
    transform: translateY(-20px) scale(1.1);
  }
  75% {
    transform: translateY(-10px) scale(1.05);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes squareAnimation {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  30% {
    transform: scale(0.3);
    opacity: 0.3;
  }
  50% {
    transform: scale(0.5);
    opacity: 0.5;
  }
  70% {
    transform: scale(0.3);
    opacity: 0.3;
  }
  100% {
    transform: scale(0);
    opacity: 0;
  }
}

@keyframes textGlow {
  0% {
    text-shadow: 0 0 15px var(--glow-color),
                 0 0 30px var(--glow-color),
                 0 0 45px var(--glow-color);
  }
  50% {
    text-shadow: 0 0 20px var(--glow-color),
                 0 0 40px var(--glow-color),
                 0 0 60px var(--glow-color);
  }
  100% {
    text-shadow: 0 0 15px var(--glow-color),
                 0 0 30px var(--glow-color),
                 0 0 45px var(--glow-color);
  }
}

@media (max-width: 1200px) and (min-width: 1025px) {
  .info-container {
    gap: 1.5rem;
  }
  
  .info-section {
    height: 280px;
  }
  
  .info-section.section-expanded {
    height: 380px;
  }
  
  .section-front, .section-back {
    padding: 1.5rem;
  }
}

@media (max-width: 1024px) {
  .expanded .hero-title-container {
    transform: translateX(-35%);
  }
  
  .hero-title.minimized {
    font-size: 2vw;
  }
  
  .info-container {
    gap: 1.5rem;
  }
  
  .info-section {
    height: 260px;
  }
  
  .info-section.section-expanded {
    height: 360px;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 15vw;
  }

  .hero-title.minimized {
    font-size: 3vw;
  }

  .expanded .hero-title-container {
    transform: translateX(-15%);
  }

  .info-panel {
    width: 90%;
    padding: 1.5rem;
    align-items: flex-start;
    overflow-y: auto;
  }
  
  .info-container {
    flex-direction: column;
    padding: 1rem;
    gap: 2rem;
    width: 100%;
  }
  
  .info-section {
    min-width: 100%;
    max-width: 100%;
    height: auto !important;
    min-height: 180px;
    margin-bottom: 1rem;
    display: block;
  }
  
  .section-front, .section-back {
    position: static;
    height: auto;
    width: 100%;
    padding: 1.5rem;
    transform: none !important;
    display: block;
  }
  
  .section-back {
    display: none;
  }
  
  .section-expanded .section-front {
    display: none;
  }
  
  .section-expanded .section-back {
    display: block;
  }
  
  .info-section h3 {
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
  }
  
  .info-section p {
    font-size: 1rem;
    line-height: 1.5;
    max-height: none;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 18vw;
  }
  
  .hero-title.minimized {
    font-size: 4vw;
  }
  
  .info-panel {
    width: 95%;
    padding: 1rem;
  }
  
  .expanded .hero-title-container {
    transform: translateX(-10%);
  }
  
  .back-button {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }
}

.scroll-indicator {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.3s ease;
  z-index: 5;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.scroll-indicator:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateX(-50%) translateY(-2px);
}

.scroll-indicator.scrolled-bottom {
  transform: translateX(-50%) rotate(180deg);
}

.scroll-indicator.scrolled-bottom:hover {
  transform: translateX(-50%) rotate(180deg) translateY(2px);
}

.scroll-indicator svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: white;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.section-back p::-webkit-scrollbar {
  width: 4px;
}

.section-back p::-webkit-scrollbar-track {
  background: transparent;
}

.section-back p::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
} 