/* Custom CSS for the portfolio */

/* Base styles */
html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  background-color: #faf9f7;
}

/* Animation classes */
.section-reveal {
  opacity: 0;
  transform: translateY(30px);
}

.stagger-item {
  opacity: 0;
  transform: translateY(20px);
}

.hero-title,
.hero-subtitle,
.hero-description,
.hero-cta,
.hero-badge {
  opacity: 0;
  transform: translateY(20px);
}

.header-item {
  opacity: 0;
  transform: translateY(-10px);
}

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

.floating-shape-delayed {
  animation: float 6s ease-in-out infinite;
  animation-delay: -3s;
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #faf9f7;
}

::-webkit-scrollbar-thumb {
  background: #e8b4a0;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #d4a085;
}

/* Smooth transitions for all interactive elements */
* {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow,
    transform, filter, backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 200ms;
}

/* Header background on scroll */
.header-scrolled {
  background-color: rgba(250, 249, 247, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

/* Active navigation link */
.nav-link.active {
  color: #c17b5c !important;
}

/* Loading animation for form submission */
.loading {
  opacity: 0.5;
  pointer-events: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }

  .section-title {
    font-size: 2.5rem;
  }
}

/* Utility classes */
.text-balance {
  text-wrap: balance;
}

/* Form focus states */
input:focus,
textarea:focus {
  outline: none;
  border-color: #c17b5c;
}

/* Button hover effects */
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(193, 123, 92, 0.3);
}

.btn-secondary:hover {
  background: linear-gradient(to right, rgba(244, 212, 199, 0.2), rgba(232, 180, 160, 0.2));
}

/* Line clamp utility for text truncation */
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
