
/* Hero Section */
.hero-section {
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: var(--header-height);
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

#canvas-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: 100%;
}

.hero-text {
  flex: 1;
  max-width: 600px;
}

.hero-subtitle {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.hero-subtitle .line {
  width: 40px;
  height: 2px;
  background-color: var(--primary);
}

.hero-subtitle p {
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 0;
}

.hero-title {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-title .text-reveal {
  display: block;
  position: relative;
  overflow: hidden;
}

.hero-title .text-reveal::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--primary);
  transform: translateX(-100%);
  animation: revealText 1.5s forwards cubic-bezier(0.77, 0, 0.175, 1);
}

.hero-title .text-reveal:nth-child(2)::after {
  animation-delay: 0.5s;
}

@keyframes revealText {
  0% {
    transform: translateX(-100%);
  }
  50% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(100%);
  }
}

.hero-description {
  font-size: 1.5rem;
  margin-bottom: 2.5rem;
}

.hero-description p {
  position: relative;
  display: inline-block;
}

.typewriter {
  white-space: nowrap;
  overflow: hidden;
  position: relative;
}

.typewriter::after {
  content: '|';
  animation: blink 1s infinite;
}

#changing-text {
  color: var(--primary);
  font-weight: 600;
  position: relative;
}

#changing-text::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-cta {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-image-wrapper {
  position: relative;
  width: 400px;
  height: 500px;
}

.hero-social {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  display: flex;
  gap: 1rem;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  animation: fadeIn 1s 2s forwards;
  opacity: 0;
}

.scroll-indicator p {
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  color: var(--muted);
}

.mouse {
  width: 26px;
  height: 40px;
  border: 2px solid var(--muted);
  border-radius: 20px;
  position: relative;
}

.mouse-wheel {
  width: 4px;
  height: 8px;
  background-color: var(--primary);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollMouse 2s infinite;
}

@keyframes scrollMouse {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(15px);
  }
}

/* Featured Section */
.featured-section {
  background: linear-gradient(to bottom, var(--background), rgba(10, 14, 23, 0.95));
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.featured-card {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius);
  overflow: hidden;
  transform-style: preserve-3d;
  perspective: 1000px;
  transition: transform 0.5s ease;
}

.card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.featured-card:hover .card-image img {
  transform: scale(1.05);
}

.card-content {
  padding: 1.5rem;
}

.tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: rgba(0, 194, 255, 0.1);
  color: var(--primary);
  border-radius: var(--border-radius-sm);
  font-size: 0.75rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.card-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.card-content p {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.card-link {
  color: var(--primary);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: gap 0.3s ease;
}

.card-link span {
  transition: transform 0.3s ease;
}

.card-link:hover {
  gap: 0.5rem;
}

.card-link:hover span {
  transform: translateX(2px);
}

.section-cta {
  text-align: center;
}

/* About Preview Section */
.about-preview-section {
  position: relative;
  overflow: hidden;
}

.about-preview-content {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.about-preview-text {
  flex: 1;
}

.about-preview-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  margin-bottom: 2.5rem;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

.about-preview-image {
  flex: 1;
  position: relative;
  max-width: 400px;
}

.image-wrapper {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  position: relative;
}

.image-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.6));
  z-index: 1;
}

.floating-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background-color: var(--primary);
  color: var(--background);
  padding: 1rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  box-shadow: 0 5px 15px rgba(0, 194, 255, 0.4);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  z-index: 2;
}

.floating-badge span:first-child {
  font-weight: 700;
}

.floating-badge span:last-child {
  font-size: 0.8rem;
  opacity: 0.8;
}

/* Contact Preview Section */
.contact-preview-section {
  background-color: rgba(10, 14, 23, 0.95);
  position: relative;
}

.contact-preview-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.contact-preview-cta {
  margin-bottom: 4rem;
}

.contact-preview-info {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-info-item .icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.contact-info-item .details h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.contact-info-item .details p {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}

/* Media Queries */
@media (max-width: 1024px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
  }

  .hero-subtitle {
    justify-content: center;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-social {
    position: static;
    justify-content: center;
    margin-top: 2rem;
  }

  .about-preview-content {
    flex-direction: column;
  }

  .about-preview-text {
    text-align: center;
  }

  .about-preview-stats {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .featured-grid {
    grid-template-columns: 1fr;
  }

  .contact-preview-info {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.8rem;
  }

  .hero-description {
    font-size: 1.2rem;
  }

  .hero-cta {
    flex-direction: column;
  }

  .about-preview-stats {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
}
