/* Custom styles for Bruce Building Things Here */

:root {
  --color-primary: #6366f1;
  --color-primary-hover: #4f46e5;
  --color-secondary: #1e293b;
  --color-secondary-hover: #334155;
  --color-accent: #f97316;
  --color-bg-dark: #111827;
  --color-bg-light: #1f2937;
  --color-text-light: #f3f4f6;
  --color-text-gray: #9ca3af;
}

body {
  font-family: 'Inter', sans-serif;
  scroll-behavior: smooth;
}

/* Pattern Background */
.bg-pattern {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(rgba(99, 102, 241, 0.1) 2px, transparent 2px),
    radial-gradient(rgba(99, 102, 241, 0.1) 2px, transparent 2px);
  background-size: 40px 40px;
  background-position: 0 0, 20px 20px;
  animation: patternMove 50s linear infinite;
}

@keyframes patternMove {
  0% { background-position: 0 0, 20px 20px; }
  100% { background-position: 100px 100px, 120px 120px; }
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  background-color: var(--color-primary);
  color: white;
  font-weight: 500;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  background-color: transparent;
  color: white;
  font-weight: 500;
  border: 2px solid var(--color-primary);
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background-color: rgba(99, 102, 241, 0.1);
  transform: translateY(-2px);
}

/* Logo Animation */
.logo-animation-container {
  position: relative;
  animation: float 6s ease-in-out infinite;
}

.logo-animation-container::before {
  content: '';
  position: absolute;
  width: 90%;
  height: 20px;
  background-color: rgba(99, 102, 241, 0.2);
  border-radius: 50%;
  bottom: -10px;
  left: 5%;
  filter: blur(10px);
  animation: shadow 6s ease-in-out infinite;
}

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

@keyframes shadow {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(0.8); opacity: 0.2; }
}

/* Header Scroll Effect */
.header-scrolled {
  background-color: rgba(31, 41, 55, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  padding: 0.5rem 0;
}

/* Project Navigation Pills */
.project-pill {
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  background-color: var(--color-secondary);
  color: var(--color-text-light);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.project-pill:hover {
  background-color: var(--color-secondary-hover);
}

.project-pill.active {
  background-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

/* Carousel */
.carousel-container {
  max-width: 1200px;
  margin: 0 auto;
}

.carousel-wrapper {
  border-radius: 1rem;
  overflow: hidden;
}

.carousel-item {
  flex: 0 0 100%;
  max-width: 100%;
  padding: 1rem;
}

@media (min-width: 768px) {
  .carousel-item {
    padding: 2rem;
  }
}

.project-card {
  background-color: var(--color-bg-dark);
  border-radius: 1rem;
  padding: 2rem;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.project-card .project-img {
  height: 600px;
  background-position: center;
  background-size: cover;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
}

.project-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.project-card p {
  color: var(--color-text-gray);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

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

.project-card .project-link:hover {
  color: var(--color-primary-hover);
}

.carousel-button {
  opacity: 0;
  transition: opacity 0.3s ease, background-color 0.3s ease;
}

.carousel-container:hover .carousel-button {
  opacity: 1;
}

/* Social Links */
.social-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem;
  border-radius: 1rem;
  background-color: var(--color-secondary);
  transition: all 0.3s ease;
}

.social-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-bottom: 1rem;
  font-size: 1.75rem;
  transition: all 0.3s ease;
}

.social-link span {
  font-weight: 500;
}

.social-link.youtube .social-icon-wrapper {
  background-color: rgba(255, 0, 0, 0.1);
  color: #FF0000;
}

.social-link.twitter .social-icon-wrapper {
  background-color: rgba(29, 161, 242, 0.1);
  color: #1DA1F2;
}

.social-link.threads .social-icon-wrapper {
  background-color: rgba(0, 0, 0, 0.1);
  color: #ffffff;
}

.social-link.facebook .social-icon-wrapper {
  background-color: rgba(59, 89, 152, 0.1);
  color: #3B5998;
}

.social-link:hover {
  transform: translateY(-5px);
}

.social-link.youtube:hover {
  background-color: rgba(255, 0, 0, 0.1);
}

.social-link.twitter:hover {
  background-color: rgba(29, 161, 242, 0.1);
}

.social-link.threads:hover {
  background-color: rgba(0, 0, 0, 0.2);
}

.social-link.facebook:hover {
  background-color: rgba(59, 89, 152, 0.1);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .social-link {
    padding: 1rem;
  }
  
  .social-icon-wrapper {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
}