
/* Base & Animation Keyframes */
@keyframes pf-ai-float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes pf-ai-float-slow {
  0%, 100% { transform: translateY(0px) translateX(0px); }
  33% { transform: translateY(-15px) translateX(10px); }
  66% { transform: translateY(10px) translateX(-5px); }
}

@keyframes pf-ai-gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes pf-ai-pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(213, 84, 54, 0.4); }
  50% { box-shadow: 0 0 0 15px rgba(213, 84, 54, 0); }
}

@keyframes pf-ai-slide-up {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pf-ai-bounce-subtle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* Portfolio Wrapper */
.pf-ai-portfolio-wrapper {
  margin: 0 -15px;
  overflow-x: hidden;
}

.pf-ai-section-fullwidth {
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  width: 100vw;
  position: relative;
}

.pf-ai-section-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px;
  position: relative;
  z-index: 2;
}

/* Typography */
.pf-ai-section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2e2e2e;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}

.pf-ai-section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #d55436, #962b38);
  border-radius: 2px;
}

.pf-ai-section-title.text-center::after {
  left: 50%;
  transform: translateX(-50%);
}

.pf-ai-subsection-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #275d84;
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  font-family: 'Roboto Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Hero Section */
.pf-ai-hero {
  background: linear-gradient(135deg, #275d84 0%, #962b38 100%);
  background-size: 200% 200%;
  animation: pf-ai-gradient-shift 8s ease infinite;
  padding: 100px 0 120px;
  margin-bottom: 60px;
  position: relative;
  overflow: hidden;
}

.pf-ai-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.3;
}

.pf-ai-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.4;
  z-index: 1;
}

.pf-ai-shape-1 {
  width: 400px;
  height: 400px;
  background: #d55436;
  top: -100px;
  right: -100px;
  animation: pf-ai-float 6s ease-in-out infinite;
}

.pf-ai-shape-2 {
  width: 300px;
  height: 300px;
  background: #58b8cb;
  bottom: -50px;
  left: -50px;
  animation: pf-ai-float-slow 8s ease-in-out infinite;
}

.pf-ai-year {
  display: inline-block;
  font-family: 'Roboto Mono', monospace;
  background: rgba(255,255,255,0.2);
  color: #fff;
  padding: 8px 16px;
  border-radius: 25px;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  letter-spacing: 0.1em;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.3);
}

.pf-ai-title {
  font-size: 4rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.pf-ai-title::after {
  content: '!';
  color: #d55436;
  display: inline-block;
  animation: pf-ai-bounce-subtle 2s infinite;
}

.pf-ai-subtitle {
  font-size: 1.25rem;
  color: rgba(255,255,255,0.9);
  line-height: 1.6;
  max-width: 600px;
  font-weight: 300;
}

/* Screenshot Section */
.pf-ai-screenshot-section {
  padding: 60px 0;
  position: relative;
}

.pf-ai-screenshot-wrapper {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(39, 93, 132, 0.15);
  padding: 20px;
  position: relative;
  transform: translateY(0);
  transition: all 0.5s ease-out;
}

.pf-ai-screenshot-wrapper:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 80px rgba(39, 93, 132, 0.2);
}

/* Info Section */
.pf-ai-info-section {
  padding: 80px 0;
}

.pf-ai-content {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #586782;
}

.pf-ai-content p {
  margin-bottom: 1.5rem;
}

.pf-ai-solution-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.pf-ai-solution-list li {
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 1.5rem;
  color: #2e2e2e;
  font-weight: 500;
}

.pf-ai-solution-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  top: 0;
  color: #d55436;
  font-family: 'Roboto Mono', monospace;
  font-weight: 700;
  font-size: 1.25rem;
}

/* Sidebar & Taxonomy */
.pf-ai-sidebar {
  background: #eaf6f8;
  border-radius: 10px;
  padding: 2rem;
  position: sticky;
  top: 100px;
  border: 1px solid rgba(88, 184, 203, 0.2);
}

.pf-ai-taxonomy-wrapper h4 {
  font-family: 'Roboto Mono', monospace;
  font-size: 0.875rem;
  text-transform: uppercase;
  color: #949c9e;
  margin-bottom: 0.75rem;
  margin-top: 1.5rem;
  letter-spacing: 0.1em;
}

.pf-ai-taxonomy-wrapper h4:first-child {
  margin-top: 0;
}

.pf-ai-tag-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pf-ai-tag-list li a {
  display: inline-block;
  padding: 6px 14px;
  background: #ffffff;
  color: #275d84;
  border-radius: 25px;
  font-size: 0.875rem;
  text-decoration: none;
  border: 1px solid rgba(39, 93, 132, 0.2);
  transition: all 0.3s ease-out;
}

.pf-ai-tag-list li a:hover {
  background: #275d84;
  color: #ffffff;
  border-color: #275d84;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(39, 93, 132, 0.2);
}

/* Color Palette */
.pf-ai-colors-section {
  background: #f8f9fa;
  padding: 80px 0;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  width: 100vw;
  position: relative;
}

.pf-ai-color-card {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 15px rgba(88, 184, 203, 0.1);
  transition: all 0.5s ease-out;
  height: 100%;
}

.pf-ai-color-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(39, 93, 132, 0.15);
}

.pf-ai-color-swatch {
  height: 160px;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.pf-ai-color-swatch::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.2) 100%);
}

.pf-ai-color-info {
  padding: 1.5rem;
  text-align: center;
}

.pf-ai-color-info h4 {
  font-size: 1.125rem;
  color: #2e2e2e;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.pf-ai-color-info code {
  font-family: 'Roboto Mono', monospace;
  color: #949c9e;
  font-size: 0.875rem;
  background: #f4f4f4;
  padding: 4px 8px;
  border-radius: 4px;
}

/* Features Section */
.pf-ai-features-section {
  padding: 100px 0;
}

.pf-ai-feature-highlight {
  perspective: 1000px;
}

.pf-ai-feature-card {
  background: #ffffff;
  border-radius: 10px;
  padding: 3rem;
  box-shadow: 0 2px 15px rgba(88, 184, 203, 0.1);
  border: 1px solid rgba(88, 184, 203, 0.1);
  transition: all 0.5s ease-out;
  position: relative;
  overflow: hidden;
}

.pf-ai-feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #275d84, #d55436, #962b38);
  background-size: 200% 100%;
  animation: pf-ai-gradient-shift 3s ease infinite;
}

.pf-ai-feature-card:hover {
  transform: translateY(-5px) rotateX(2deg);
  box-shadow: 0 15px 40px rgba(39, 93, 132, 0.15);
}

.pf-ai-feature-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.pf-ai-feature-number {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #d55436, #962b38);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Roboto Mono', monospace;
  font-size: 1.5rem;
  font-weight: 700;
  flex-shrink: 0;
  animation: pf-ai-pulse-glow 2s infinite;
}

.pf-ai-feature-card h3 {
  font-size: 1.75rem;
  color: #2e2e2e;
  margin: 0;
  font-weight: 700;
}

.pf-ai-feature-card p {
  color: #586782;
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.pf-ai-steps-visual {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px dashed rgba(88, 184, 203, 0.3);
}

.pf-ai-step-dot {
  width: 12px;
  height: 12px;
  background: #275d84;
  border-radius: 50%;
  position: relative;
  animation: pf-ai-float 3s ease-in-out infinite;
}

.pf-ai-step-dot:nth-child(2) { animation-delay: 0.2s; background: #3a6d94; }
.pf-ai-step-dot:nth-child(3) { animation-delay: 0.4s; background: #4d7da4; }
.pf-ai-step-dot:nth-child(4) { animation-delay: 0.6s; background: #608db4; }
.pf-ai-step-dot:nth-child(5) { animation-delay: 0.8s; background: #739dc4; }
.pf-ai-step-dot:nth-child(6) { animation-delay: 1.0s; background: #86add4; }
.pf-ai-step-dot:nth-child(7) { animation-delay: 1.2s; background: #99bde4; }
.pf-ai-step-dot:nth-child(8) { animation-delay: 1.4s; background: #d55436; width: 16px; height: 16px; animation: pf-ai-pulse-glow 2s infinite; }

.pf-ai-step-dot:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 20px;
  width: calc(100% + 20px);
  height: 2px;
  background: linear-gradient(90deg, #275d84, transparent);
  transform: translateY(-50%);
}

/* Buttons */
.pf-ai-btn-primary {
  display: inline-block;
  padding: 16px 32px;
  background: #d55436;
  color: #ffffff;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid #d55436;
  transition: all 0.3s ease-out;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 4px 15px rgba(213, 84, 54, 0.3);
}

.pf-ai-btn-primary:hover {
  background: #962b38;
  border-color: #962b38;
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(150, 43, 56, 0.4);
}

.pf-ai-btn-secondary {
  display: inline-block;
  padding: 16px 32px;
  background: transparent;
  color: #275d84;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid #275d84;
  transition: all 0.3s ease-out;
  cursor: pointer;
  text-align: center;
  margin-left: 1rem;
}

.pf-ai-btn-secondary:hover {
  background: #275d84;
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(39, 93, 132, 0.3);
}

/* CTA Section */
.pf-ai-cta-section {
  background: linear-gradient(135deg, #275d84 0%, #1a4563 100%);
  padding: 100px 0;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  width: 100vw;
  position: relative;
  overflow: hidden;
}

.pf-ai-cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(213, 84, 54, 0.1) 0%, transparent 70%);
  animation: pf-ai-float-slow 10s ease-in-out infinite;
}

.pf-ai-cta-title {
  font-size: 3rem;
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative;
}

.pf-ai-cta-text {
  font-size: 1.25rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Responsive Adjustments */
@media (max-width: 767px) {
  .pf-ai-title {
    font-size: 2.5rem;
  }
  
  .pf-ai-section-title {
    font-size: 2rem;
  }
  
  .pf-ai-cta-title {
    font-size: 2rem;
  }
  
  .pf-ai-sidebar {
    position: relative;
    top: 0;
    margin-top: 3rem;
  }
  
  .pf-ai-feature-card {
    padding: 2rem;
  }
  
  .pf-ai-steps-visual {
    display: none;
  }
  
  .pf-ai-btn-secondary {
    margin-left: 0;
    margin-top: 1rem;
  }
  
  .pf-ai-cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .pf-ai-shape {
    opacity: 0.2;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .pf-ai-title {
    font-size: 3rem;
  }
  
  .pf-ai-sidebar {
    margin-top: 3rem;
    position: relative;
    top: 0;
  }
}

@media (min-width: 992px) {
  .pf-ai-info-section .row {
    align-items: flex-start;
  }
}

/* Utility Classes */
.pf-ai-text-gradient {
  background: linear-gradient(135deg, #d55436, #962b38);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pf-ai-mb-0 { margin-bottom: 0 !important; }
.pf-ai-mt-4 { margin-top: 2rem !important; }
