/* Home page specific styles */

/* Hero section */
.hero {
  position: relative;
  padding: 4rem 0;
  overflow: hidden;
  min-height: 70vh;
  display: flex;
  align-items: center;
}

@media (max-width: 767.98px) {
  .hero {
    min-height: 100vh;
  }

  .scroll-indicator {
    display: none;
  }
}

.hero-layout {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 3rem;
  width: 100%;
}

@media (min-width: 768px) {
  .hero-layout {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 100%;
  text-align: center;
}

@media (min-width: 768px) {
  .hero-content {
    max-width: 50%;
    text-align: left;
  }
}

.hero-title, .hero-greeting {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: hsl(var(--foreground));
  letter-spacing: -0.03em;
}

.hero-tagline {
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  color: hsl(var(--muted-foreground));
  max-width: 600px;
}

.hero-tagline .highlight {
  color: hsl(var(--primary));
  font-weight: 600;
}

@media (min-width: 768px) {
  .hero-tagline {
    margin-left: 0;
    margin-right: auto;
  }
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

@media (min-width: 768px) {
  .hero-buttons {
    justify-content: flex-start;
  }
}

.hero-image-container {
  position: relative;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid hsl(var(--border));
  background-color: hsl(var(--card));
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

@media (min-width: 768px) {
  .hero-image-container {
    width: 350px;
    height: 350px;
  }
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tech-icon {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: hsl(var(--background));
  border: 2px solid hsl(var(--primary));
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
  animation: float 3s ease-in-out infinite;
  z-index: 2;
  color: hsl(var(--primary));
}

/* Animation delays for tech icons */
.tech-icon-code {
  animation-delay: 0s;
  top: 50%;
  left: -15%;
  transform: translateY(-50%);
}

.tech-icon-terminal {
  animation-delay: 0.5s;
  top: 10%;
  right: -15%;
}

.tech-icon-database {
  animation-delay: 1s;
  bottom: 10%;
  left: 10%;
}

.tech-icon-cpu {
  animation-delay: 1.5s;
  bottom: 30%;
  right: -15%;
}

/* Additional styling for profile section */
.profile-section {
  position: relative;
  width: 300px;
  height: 300px;
  margin: 0 auto;
  animation: float 6s ease-in-out infinite;
}

.profile-image-container {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid hsl(var(--primary));
  background-color: hsl(var(--card));
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Circular border around profile image */
.profile-section::after {
  content: "";
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  border-radius: 50%;
  border: 2px solid hsl(var(--primary) / 0.3);
  z-index: 1;
}

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

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  opacity: 0.9;
  z-index: 10;
  cursor: pointer;
}

.scroll-indicator a {
  color: hsl(var(--foreground));
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: hsla(var(--card), 0.5);
  backdrop-filter: blur(4px);
  border: 1px solid hsl(var(--border));
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.scroll-indicator a:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
  background-color: hsl(var(--primary));
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0) translateX(-50%);
  }
  40% {
    transform: translateY(-10px) translateX(-50%);
  }
  60% {
    transform: translateY(-5px) translateX(-50%);
  }
}

/* Featured Projects Section */
.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.view-all {
  font-size: 0.9rem;
  font-weight: 500;
  color: hsl(var(--primary));
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.view-all:hover {
  text-decoration: underline;
}

/* Project cards */
.project-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.project-card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
  color: hsl(var(--muted-foreground));
  font-size: 0.8rem;
}

.project-views {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.project-views svg {
  opacity: 0.7;
}

.project-card-image {
  aspect-ratio: 16/9;
  background-color: hsl(var(--muted));
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
}

.project-card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-card-footer {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tech-badge {
  background-color: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
  font-size: 0.65rem;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
}

@media (max-width: 375px) {
  .profile-section {
    width: 200px;
    height: 200px;
    margin-top: 2rem;
  }
}