/*
Theme Name: Woof Consulting MD
Theme URI: https://woofconsultingmd.com
Author: Woof Consulting MD
Author URI: https://woofconsultingmd.com
Description: Custom theme for Woof Consulting MD - Automation & Technology Solutions
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: woof-consulting
*/

/* CSS Variables - Design System */
:root {
  --button-outline: rgba(0,0,0, .10);
  --badge-outline: rgba(0,0,0, .05);
  --elevate-1: rgba(0,0,0, .03);
  --elevate-2: rgba(0,0,0, .08);
  --background: 220 15% 99%;
  --foreground: 220 20% 10%;
  --border: 220 13% 91%;
  --card: 220 15% 97%;
  --card-foreground: 220 20% 10%;
  --primary: 217 80% 32%;
  --primary-foreground: 0 0% 100%;
  --secondary: 220 14% 90%;
  --secondary-foreground: 220 20% 10%;
  --muted: 220 14% 92%;
  --muted-foreground: 220 15% 40%;
  --accent: 262 83% 58%;
  --accent-foreground: 0 0% 100%;
  --destructive: 0 84% 60%;
  --ring: 217 91% 60%;
  --radius: 0.5rem;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: Georgia, serif;
  --font-mono: 'Space Grotesk', monospace;
}

.dark {
  --button-outline: rgba(255,255,255, .10);
  --badge-outline: rgba(255,255,255, .05);
  --elevate-1: rgba(255,255,255, .04);
  --elevate-2: rgba(255,255,255, .09);
  --background: 220 18% 6%;
  --foreground: 220 10% 96%;
  --border: 220 13% 16%;
  --card: 220 18% 8%;
  --card-foreground: 220 10% 96%;
  --primary: 217 91% 60%;
  --primary-foreground: 0 0% 100%;
  --secondary: 220 13% 15%;
  --secondary-foreground: 220 10% 96%;
  --muted: 220 13% 13%;
  --muted-foreground: 220 10% 65%;
  --accent: 262 83% 58%;
  --accent-foreground: 0 0% 100%;
}

/* Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

@media (min-width: 768px) {
  h1 { font-size: 4.5rem; }
  h2 { font-size: 3rem; }
}

p {
  margin: 0 0 1rem;
}

a {
  color: hsl(var(--primary));
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: hsl(var(--accent));
}

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container { padding: 0 1.5rem; }
}

@media (min-width: 1024px) {
  .container { padding: 0 2rem; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.btn-primary:hover {
  background-color: hsl(217 80% 28%);
}

.btn-secondary {
  background-color: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
}

.btn-outline {
  background-color: transparent;
  border: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
}

.btn-outline:hover {
  background-color: hsl(var(--secondary));
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-white {
  background-color: white;
  color: hsl(var(--primary));
}

.btn-white:hover {
  background-color: rgba(255, 255, 255, 0.9);
}

/* Cards */
.card {
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 9999px;
  background-color: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
}

.badge-primary {
  background-color: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
  border: 1px solid hsl(var(--primary) / 0.2);
}

/* Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all 0.3s ease;
  padding-top: 20px;
}

.site-header.scrolled {
  background-color: hsl(var(--background) / 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid hsl(var(--border));
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  height: 5rem;
}

.site-logo {
  font-size: 1.25rem;
  font-weight: 700;
  background: linear-gradient(to right, hsl(var(--primary)), hsl(var(--accent)));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-menu {
  display: none;
}

.nav-menu ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.25rem;
}

.nav-menu li {
  margin: 0;
  padding: 0;
}

@media (min-width: 768px) {
  .nav-menu {
    display: block;
  }
}

.nav-menu a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  border-radius: var(--radius);
  transition: all 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
  background-color: hsl(var(--secondary));
  color: hsl(var(--foreground));
}

/* Mobile Menu */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: hsl(var(--foreground));
}

@media (min-width: 768px) {
  .mobile-menu-toggle {
    display: none;
  }
}

.mobile-menu {
  display: none;
  background-color: hsl(var(--card));
  border-bottom: 1px solid hsl(var(--border));
  padding: 1rem;
}

.mobile-menu.open {
  display: block;
}

.mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-menu li {
  margin: 0;
  padding: 0;
}

.mobile-menu a {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  border-radius: var(--radius);
}

.mobile-menu a:hover,
.mobile-menu a.active {
  background-color: hsl(var(--secondary));
  color: hsl(var(--foreground));
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-color: hsl(var(--background));
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, hsl(var(--primary) / 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, hsl(var(--accent) / 0.1) 0%, transparent 40%),
    radial-gradient(ellipse at 60% 80%, hsl(var(--primary) / 0.1) 0%, transparent 40%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(to bottom, transparent, hsl(var(--background) / 0.5), hsl(var(--background)));
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 56rem;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 4.5rem;
  }
}

.hero h1 .highlight {
  color: hsl(var(--primary));
}

.hero-subtitle {
  font-size: 1.25rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 2.5rem;
  max-width: 42rem;
}

@media (min-width: 768px) {
  .hero-subtitle {
    font-size: 1.5rem;
  }
}

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

/* Services Grid */
.services-section {
  padding: 6rem 0;
  background-color: hsl(var(--muted) / 0.3);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  color: hsl(var(--muted-foreground));
  max-width: 42rem;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  padding: 2rem;
  border-radius: 1rem;
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  transition: all 0.3s ease;
}

.service-card:hover {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.service-card:hover .service-icon {
  transform: scale(1.1);
}

.service-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  background-color: hsl(var(--primary) / 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}

.service-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: hsl(var(--primary));
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.service-card p {
  color: hsl(var(--muted-foreground));
  margin: 0;
}

/* Projects Section */
.projects-section {
  padding: 6rem 0;
}

.projects-header {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .projects-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.projects-header h2 {
  margin-bottom: 1rem;
}

.projects-header p {
  color: hsl(var(--muted-foreground));
  max-width: 36rem;
  margin: 0;
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid hsl(var(--border));
  background-color: hsl(var(--card));
  transition: all 0.3s ease;
}

.project-card:hover {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

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

.project-content {
  padding: 2rem;
}

.project-category {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: hsl(var(--primary));
  margin-bottom: 0.5rem;
}

.project-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  transition: color 0.3s ease;
}

.project-card p {
  color: hsl(var(--muted-foreground));
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-tag {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: var(--radius);
  background-color: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
  border: 1px solid hsl(var(--border));
}

/* CTA Section */
.cta-section {
  padding: 6rem 0;
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 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");
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 10;
  max-width: 48rem;
  margin: 0 auto;
}

.cta-section h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .cta-section h2 {
    font-size: 3.75rem;
  }
}

.cta-section p {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .cta-section p {
    font-size: 1.5rem;
  }
}

/* Footer */
.site-footer {
  padding: 3rem 0;
  background-color: hsl(var(--card));
  border-top: 1px solid hsl(var(--border));
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    justify-content: center;
    gap: 3rem;
    text-align: center;
  }
}

.footer-logo {
  display: flex;
  align-items: center;
}

.footer-logo img {
  height: 50px;
  width: auto;
}

.footer-links ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
}

.footer-links a:hover {
  color: hsl(var(--foreground));
}

.footer-copyright {
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
}

/* Theme Toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: hsl(var(--muted-foreground));
  border-radius: var(--radius);
  transition: all 0.2s ease;
}

.theme-toggle:hover {
  background-color: hsl(var(--secondary));
  color: hsl(var(--foreground));
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

.animate-delay-100 { animation-delay: 0.1s; }
.animate-delay-200 { animation-delay: 0.2s; }
.animate-delay-300 { animation-delay: 0.3s; }
.animate-delay-400 { animation-delay: 0.4s; }

/* About Page */
.about-hero {
  padding: 10rem 0 6rem;
  text-align: center;
  position: relative;
  overflow: visible;
  min-height: 40vh;
}

.about-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 20% 30%, hsl(var(--primary) / 0.2) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, hsl(var(--accent) / 0.15) 0%, transparent 45%),
    radial-gradient(ellipse at 50% 80%, hsl(var(--primary) / 0.12) 0%, transparent 50%);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 60%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 0%, black 60%, transparent 100%);
}

.about-hero .container {
  position: relative;
  z-index: 1;
}

.about-hero h1 {
  margin-bottom: 1.5rem;
}

.about-hero p {
  color: hsl(var(--muted-foreground));
  font-size: 1.25rem;
  max-width: 48rem;
  margin: 0 auto;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 6rem;
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr 2fr;
  }
}

.about-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

@media (min-width: 1024px) {
  .about-profile {
    align-items: flex-start;
    text-align: left;
  }
}

.profile-avatar {
  width: 16rem;
  height: 16rem;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 2rem;
  border: 4px solid hsl(var(--border));
}

.profile-name {
  font-size: 1.875rem;
  margin-bottom: 0.5rem;
}

.profile-title {
  font-size: 1.25rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1.5rem;
}

.profile-industries {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

@media (min-width: 1024px) {
  .profile-industries {
    justify-content: flex-start;
  }
}

.about-cards {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.about-card {
  padding: 2rem;
}

.about-card-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.about-card-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  background-color: hsl(var(--primary) / 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.about-card-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: hsl(var(--primary));
}

.about-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.about-card p {
  color: hsl(var(--muted-foreground));
  line-height: 1.7;
}

/* Skills Grid */
.skills-section {
  margin-bottom: 6rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.skill-category h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.skill-category h3::before {
  content: '';
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background-color: hsl(var(--primary));
}

.skill-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.skill-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: hsl(var(--muted-foreground));
  padding: 0.5rem 0;
}

.skill-list li::before {
  content: '•';
  color: hsl(var(--primary));
  margin-top: 0.125rem;
}

/* Contact Page */
.contact-section {
  padding: 8rem 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem 1rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 3px hsl(var(--ring) / 0.1);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
}

.contact-card-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  background-color: hsl(var(--primary) / 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-card-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: hsl(var(--primary));
}

.contact-card h4 {
  margin-bottom: 0.25rem;
}

.contact-card p {
  color: hsl(var(--muted-foreground));
  margin: 0;
}

/* Utility Classes */
.text-primary { color: hsl(var(--primary)); }
.text-muted { color: hsl(var(--muted-foreground)); }
.text-center { text-align: center; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mt-8 { margin-top: 2rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }

/* Gradient Background Card */
.gradient-card {
  background: linear-gradient(135deg, hsl(var(--primary) / 0.05), hsl(var(--accent) / 0.05), hsl(var(--background)));
  border-radius: 1rem;
  padding: 3rem;
}

@media (min-width: 768px) {
  .gradient-card {
    padding: 4rem;
  }
}

/* ==========================================================================
   Scroll-Triggered Animations
   ========================================================================== */

/* Base state for elements that animate on scroll */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Visible state when element enters viewport */
.animate-on-scroll.animate-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for grid items */
.animate-on-scroll:nth-child(1) { transition-delay: 0s; }
.animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.animate-on-scroll:nth-child(4) { transition-delay: 0.3s; }
.animate-on-scroll:nth-child(5) { transition-delay: 0.4s; }
.animate-on-scroll:nth-child(6) { transition-delay: 0.5s; }

/* Micro-interactions */
.btn {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn:active {
  transform: scale(0.98);
}

/* Card hover enhancements */
.service-card,
.project-card {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.3s ease;
}

.service-card:hover,
.project-card:hover {
  border-color: hsl(var(--primary) / 0.3);
}

/* Service icon animation */
.service-icon {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              background-color 0.3s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1) translateY(-2px);
  background-color: hsl(var(--primary) / 0.15);
}

/* Link underline animation */
.nav-menu a,
.footer-links a {
  position: relative;
}

.nav-menu a::after,
.footer-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: hsl(var(--primary));
  transition: width 0.3s ease, left 0.3s ease;
}

.nav-menu a:hover::after,
.footer-links a:hover::after {
  width: 100%;
  left: 0;
}

/* Profile image subtle animation */
.profile-avatar {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.5s ease;
}

.profile-avatar:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Badge hover effect */
.badge,
.project-tag,
.project-tech-tag {
  transition: all 0.2s ease;
}

.badge:hover,
.project-tag:hover,
.project-tech-tag:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* CTA section pulse effect */
.cta-section .btn-white {
  animation: subtle-pulse 3s ease-in-out infinite;
}

@keyframes subtle-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(255, 255, 255, 0);
  }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn,
  .service-card,
  .project-card,
  .service-icon,
  .profile-avatar,
  .badge,
  .project-tag,
  .project-tech-tag {
    transition: none;
  }

  .cta-section .btn-white {
    animation: none;
  }
}
