@font-face {
  font-family: 'Aeonik';
  src: url('./fonts/Aeonik-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Aeonik';
  src: url('./fonts/Aeonik-Bold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

* {
  font-family: 'Aeonik', sans-serif !important;
}

.text-shadow {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.interactive-button {
  position: relative;
  z-index: 20;
}

.interactive-button::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

/* Grid Animation Styles */
.grid-container {
  position: relative;
  width: 100vw;
  height: 100vh;
  background-color: #111111;
}

.light-effect {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgb(169,148,246) 0%, rgb(169,148,246) 40%, rgb(43,39,92) 70%, rgb(43,39,92) 80%), rgb(17,17,17) 100%;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 1;
  transition: opacity 1s ease;
  filter: blur(4px);
}

.tile-grid {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 6px;
  width: 100%;
  height: 100%;
  padding: 2px;
  place-content: center;
}

.tile {
  width: 240px;
  height: 240px;
  background-color: #000000;
  border-radius: 18px;
  transition: all 0.2s ease;
}

/* Timeline Styles */
.glow-line {
  background: #6366f1;
  box-shadow: 0 0 10px #6366f1, 0 0 20px #6366f1, 0 0 40px #6366f1;
  transition: top 0.25s ease, height 1s ease, opacity 0.2s ease;
  opacity: 0;
}

.glow-icon {
  box-shadow: 0 0 10px #6366f1, 0 0 20px #6366f1, 0 0 40px #6366f1;
}

.fade-point {
  opacity: 0;
  transition: opacity 0.8s ease-out;
  will-change: opacity;
}

.fade-point.show {
  opacity: 1;
}

.timeline-wrap {
  position: relative;
}

/* Portfolio Styles */
.portfolio-container {
  position: relative;
  max-height: calc(120vh);
  overflow: hidden;
  padding: 0 2rem;
}

.portfolio-container::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to bottom, transparent 0%, rgba(255, 255, 255, 0.8) 50%, rgba(255, 255, 255, 1) 100%);
  pointer-events: none;
  z-index: 10;
}

.portfolio-masonry {
  column-count: 3;
  column-gap: 2rem;
  padding: 1rem 0;
}

.portfolio-card {
  display: inline-block;
  width: 100%;
  margin-bottom: 2rem;
  break-inside: avoid;
}

.portfolio-card:hover {
  transform: translateY(-10px) scale(1.02);
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.float-animation {
  animation: float 6s ease-in-out infinite;
}

.animation-delay-2000 {
  animation-delay: 2s;
}

.animation-delay-4000 {
  animation-delay: 4s;
}

/* Contact Section Animations */
.popup-enter {
  animation: popupEnter 0.6s ease-out forwards;
}

.popup-exit {
  animation: popupExit 0.3s ease-in forwards;
}

@keyframes popupEnter {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes popupExit {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-20px) scale(0.98);
  }
}

.fade-out {
  animation: fadeOut 0.3s ease-in forwards;
}

@keyframes fadeOut {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-10px);
  }
}

/* Responsive Styles */
@media (max-width: 1320px) {
  .service-cards-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 1040px) {
  .portfolio-masonry {
    column-count: 2;
  }
  .portfolio-container {
    max-height: calc(120vh);
    padding: 0 1.5rem;
  }
}

@media (max-width: 850px) {
  .service-cards-grid {
    grid-template-columns: repeat(1, 1fr) !important;
  }
}

@media (max-width: 750px) {
  .portfolio-masonry {
    column-count: 1;
  }
  .portfolio-container {
    max-height: calc(150vh);
    padding: 0 1rem;
  }
}

@media (max-width: 620px) {
  .ways-we-help-container {
    margin-left: 2.5rem !important;
    margin-right: 2.5rem !important;
  }
}

@media (max-width: 600px) {
  .contact-section-container {
    height: 68vh !important;
  }
  
  .contact-popup-text1 {
    font-size: 30px !important;
  }
  
  .contact-popup-text2 {
    font-size: 20px !important;
  }
  
  .footer-contact-section {
    flex-direction: column !important;
  }
}

@media (max-width: 550px) {
  .ways-we-help-container {
    padding-left: 2.5rem !important;
    padding-right: 2.5rem !important;
  }
}