/* Modern UX/UI Portfolio Styles */

/* CSS Variables for consistent theming */
:root {
  /* Colors - Modern Professional Palette */
  --primary-color: #3843d0; /* Deep indigo */
  --primary-dark: #2a33a6;
  --primary-light: #5b64df;
  --secondary-color: #ffc466; /* Warm orange */
  --secondary-dark: #e6a952;
  --secondary-light: #ffd699;
  --accent-color: #95a5a6; /* Neutral gray */
  --accent-dark: #7f8c8d;
  --accent-light: #bdc3c7;
  --text-primary: #2c3e50;
  --text-secondary: #4a4a4a;
  --text-light: #bdc3c7;
  --bg-primary: #fefcf4;
  --bg-secondary: #ffffff;
  --bg-dark: #3843d0;
  --footer-bg: #fefcf4; /* Secondary color */
  --footer-text: #2c3e50; /* Dark text for footer */
  --border-color: #e9ecef;
  --shadow-light: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-medium: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-large: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Typography - Avenir body, Playfair Display headings */
  --font-primary: 'Avenir', 'Avenir Next', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  
  /* Spacing */
  --section-padding: 5rem 0;
  --container-padding: 0 1rem;
  
  /* Border radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  
  /* Transitions */
  --transition-fast: 0.15s ease-in-out;
  --transition-normal: 0.3s ease-in-out;
  --transition-slow: 0.5s ease-in-out;
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

* {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

.whole-container {
  min-width: 320px;
  max-width: 100vw;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
    font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

/* Skip links */
.skip-links {
  position: absolute;
  top: -100px;
  left: 0;
  z-index: 1000;
}

.skip-links a {
  background-color: var(--primary-color);
  color: white;
  padding: 0.5rem 1rem;
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
}

.skip-links a:focus {
  top: 1rem;
  left: 1rem;
}

/* Navigation */
.navbar {
  background-color: #ffffff !important;
  backdrop-filter: none;
  border-bottom: 1px solid var(--border-color);
  padding: 0.1rem 0;
  transition: var(--transition-normal);
}

.navbar-brand img {
  height: 110px;
  width: auto;
  transition: var(--transition-normal);
}

.navbar-brand img:hover {
  transform: scale(1.05);
}

@media (max-width: 576px) {
  .navbar-brand img {
    height: 70px;
  }
}

.navbar-nav .nav-item {
  margin: 0 0.15rem;
}

.navbar-nav .nav-link {
  color: var(--text-primary) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  border-radius: var(--radius-lg);
  transition: var(--transition-normal);
  position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  background-color: var(--primary-color);
  color: white !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.navbar-toggler {
    border: none;
  padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* Hero Section */
.hero-section {
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%236366f1" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23f59e0b" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="%23ec4899" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem 0;
}

.hero-badge {
  display: inline-block;
  margin-bottom: 1.5rem;
}

.badge-text {
  background-color: var(--primary-color);
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-size: 1.25rem;
    font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-medium);
}

.hero-title {
  margin-bottom: 1.5rem;
}

.hero-title .greeting {
  display: block;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.rotating-greeting {
  color: var(--primary-color);
  font-weight: 700;
}

.hero-title .name {
  display: block;
  color: var(--primary-color);
  font-weight: 700;
}

.hero-description {
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 500px;
}

.hero-actions {
  margin-bottom: 3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}

.hero-actions .btn {
  margin: 0;
}

.btn {
  font-weight: 600;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-lg);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: var(--transition-normal);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  box-shadow: var(--shadow-medium);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-large);
    color: white;
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
  background-color: transparent;
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

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

.btn-white:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  font-family: var(--font-display);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Hero Image */
.hero-image-container {
position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  min-height: 500px;
}

.hero-image-wrapper {
  position: relative;
  max-width: 500px;
  width: 100%;
}

.hero-image {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.1));
  animation: float 6s ease-in-out infinite;
}

/* TV Showcase Section */
.tv-showcase {
  /* background: var(--bg-primary); */
  position: relative;
  overflow: hidden;
  will-change: auto;
}

.tv-container {
  position: relative;
  padding: 2rem 0;
}

.tv-showcase::before {
  content: '';
    position: absolute;
    top: 0;
    left: 0;
  right: 0;
  bottom: 0;
  background: var(--secondary-color);
  pointer-events: none;
}

/* TV Frame slideshow - Modern Design */
.tv-frame {
  position: relative;
  width: 100%;
  max-width: 600px;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #42474c 0%, #495057 100%);
  border: 1px solid #6c757d;
  border-radius: 20px;
  box-shadow: 
    0 10px 20px rgba(108, 117, 125, 0.2),
    0 4px 8px rgba(108, 117, 125, 0.1),
    inset 0 2px 4px rgba(255, 255, 255, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  will-change: auto;
}

.tv-frame:hover {
  transform: scale(1.02);
  box-shadow: 
    0 15px 30px rgba(108, 117, 125, 0.3),
    0 6px 12px rgba(108, 117, 125, 0.2),
    inset 0 2px 4px rgba(255, 255, 255, 0.15);
}

.tv-screen {
  position: absolute;
  inset: 12px;
  background: #000;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
}

.tv-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
  will-change: auto;
}

.tv-knobs {
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 40%;
  background: linear-gradient(180deg, #adb5bd 0%, #6c757d 100%);
  border-radius: 6px 0 0 6px;
  box-shadow: 
    2px 0 8px rgba(0, 0, 0, 0.2),
    inset 1px 0 2px rgba(255, 255, 255, 0.3);
}

.tv-knobs::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: #6c757d;
  border-radius: 50%;
}

.tv-antenna {
  position: absolute;
  top: -15px;
  left: 20%;
  width: 2px;
  height: 20px;
  background: #6c757d;
  border-radius: 1px;
}

.tv-antenna::before {
  content: '';
  position: absolute;
  top: -8px;
  left: -3px;
  width: 8px;
  height: 8px;
  background: #adb5bd;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(173, 181, 189, 0.6);
}


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

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.8; }
}

@keyframes slideInFromLeft {
  0% { transform: translateX(-100px); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}

@keyframes slideInFromRight {
  0% { transform: translateX(100px); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}

@keyframes fadeInUp {
  0% { transform: translateY(30px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 20px rgba(42, 55, 143, 0.3); }
  50% { box-shadow: 0 0 30px rgba(42, 55, 143, 0.6), 0 0 40px rgba(255, 224, 97, 0.3); }
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

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

/* Floating Circle Animations */
@keyframes floatCircle1 {
  0%, 100% { transform: translateY(0px) translateX(0px) rotate(0deg); }
  25% { transform: translateY(-20px) translateX(10px) rotate(90deg); }
  50% { transform: translateY(-10px) translateX(-5px) rotate(180deg); }
  75% { transform: translateY(-15px) translateX(8px) rotate(270deg); }
}

@keyframes floatCircle2 {
  0%, 100% { transform: translateY(0px) translateX(0px) rotate(0deg); }
  33% { transform: translateY(-15px) translateX(-8px) rotate(120deg); }
  66% { transform: translateY(-25px) translateX(12px) rotate(240deg); }
}

@keyframes floatCircle3 {
  0%, 100% { transform: translateY(0px) translateX(0px) rotate(0deg); }
  20% { transform: translateY(-12px) translateX(6px) rotate(72deg); }
  40% { transform: translateY(-18px) translateX(-3px) rotate(144deg); }
  60% { transform: translateY(-8px) translateX(9px) rotate(216deg); }
  80% { transform: translateY(-22px) translateX(-6px) rotate(288deg); }
}

@keyframes floatCircle4 {
  0%, 100% { transform: translateY(0px) translateX(0px) rotate(0deg); }
  30% { transform: translateY(-30px) translateX(-10px) rotate(108deg); }
  60% { transform: translateY(-5px) translateX(15px) rotate(216deg); }
  90% { transform: translateY(-20px) translateX(-8px) rotate(324deg); }
}

@keyframes floatCircle5 {
  0%, 100% { transform: translateY(0px) translateX(0px) rotate(0deg); }
  25% { transform: translateY(-25px) translateX(5px) rotate(90deg); }
  50% { transform: translateY(-10px) translateX(-12px) rotate(180deg); }
  75% { transform: translateY(-20px) translateX(8px) rotate(270deg); }
}

@keyframes floatCircle6 {
  0%, 100% { transform: translateY(0px) translateX(0px) rotate(0deg); }
  40% { transform: translateY(-18px) translateX(-7px) rotate(144deg); }
  80% { transform: translateY(-12px) translateX(11px) rotate(288deg); }
}
/* new added 7-12 */
@keyframes floatCircle7 {
  0%, 100% { transform: translateY(0px) translateX(0px) rotate(0deg); }
  35% { transform: translateY(-22px) translateX(8px) rotate(126deg); }
  70% { transform: translateY(-8px) translateX(-14px) rotate(252deg); }
}

@keyframes floatCircle8 {
  0%, 100% { transform: translateY(0px) translateX(0px) rotate(0deg); }
  25% { transform: translateY(-16px) translateX(-6px) rotate(90deg); }
  50% { transform: translateY(-28px) translateX(9px) rotate(180deg); }
  75% { transform: translateY(-12px) translateX(-11px) rotate(270deg); }
}

@keyframes floatCircle9 {
  0%, 100% { transform: translateY(0px) translateX(0px) rotate(0deg); }
  20% { transform: translateY(-14px) translateX(7px) rotate(72deg); }
  40% { transform: translateY(-26px) translateX(-4px) rotate(144deg); }
  60% { transform: translateY(-6px) translateX(13px) rotate(216deg); }
  80% { transform: translateY(-20px) translateX(-9px) rotate(288deg); }
}

@keyframes floatCircle10 {
  0%, 100% { transform: translateY(0px) translateX(0px) rotate(0deg); }
  30% { transform: translateY(-24px) translateX(-12px) rotate(108deg); }
  60% { transform: translateY(-4px) translateX(18px) rotate(216deg); }
  90% { transform: translateY(-18px) translateX(-10px) rotate(324deg); }
}

/* Cat Animation */
@keyframes catFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  25% { transform: translateY(-10px) rotate(2deg); }
  50% { transform: translateY(-5px) rotate(-1deg); }
  75% { transform: translateY(-15px) rotate(1deg); }
}

/* Hero Section Animations */
.hero-title .name {
  animation: fadeInUp 1s ease-out 0.5s both;
}

.hero-title .greeting {
  animation: slideInFromLeft 0.8s ease-out 0.2s both;
}

.hero-badge {
  animation: fadeInUp 1s ease-out 0.8s both;
}

.hero-description {
  animation: fadeInUp 1s ease-out 1.1s both;
}

.hero-actions {
  animation: fadeInUp 1s ease-out 1.4s both;
}

/* Rotating Greeting Animation */
.rotating-greeting {
  animation: pulse 2s ease-in-out infinite;
}

/* Button Hover Effects */
.btn-primary {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(42, 55, 143, 0.4);
}

/* Card Hover Effects */
.skill-card, .featured-project-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-card:hover, .featured-project-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(42, 55, 143, 0.15);
}

/* Staggered Animation */
.stagger-animation > * {
  animation: fadeInUp 0.6s ease-out both;
}

.stagger-animation > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-animation > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-animation > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-animation > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-animation > *:nth-child(5) { animation-delay: 0.5s; }

/* Floating SVG Container */
.floating-svg-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
    z-index: 1; 
  overflow: hidden;
  }

.floating-svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  opacity: 0.2;
  filter: blur(0.5px);
}

.floating-svg circle {
  opacity: 0.8;
  transition: all 0.3s ease;
}

.floating-svg:hover circle {
  opacity: 1;
  filter: blur(0px);
}

/* Hero Side Elements */
.hero-side-element {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
}

.hero-cat {
  justify-content: flex-end;
  padding-right: 2rem;
}

.hero-contact {
  justify-content: flex-start;
  padding-left: 2rem;
}

.cat-svg {
  width: 220px;
  height: auto;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.cat-svg:hover {
  opacity: 1;
  transform: scale(1.05);
}

.contact-image-home {
  width: 280px;
  height: auto;
  transition: all 0.3s ease;
  opacity: 0.9;
}

.contact-image-home:hover {
  opacity: 1;
  transform: scale(1.05) translateY(-5px);
}

/* Responsive adjustments */
@media (max-width: 992px) {
  html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
  }
  
  body {
    scroll-behavior: smooth;
  }
  
  .hero-side-element {
    display: block;
  }

  .welcome-image {
    width: 120px;
    margin: 1rem auto;
    display: block;
  }
  
  .hero-welcome {
    text-align: center;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .contact-image-home {
    width: 280px;
    margin: 1rem auto;
    display: block;
  }
  
  .hero-contact {
    text-align: center;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  /* Enhanced smooth scrolling for mobile/tablet */
  .hero-section,
  .tv-showcase,
  .skills-section,
  .featured-work {
    scroll-behavior: smooth;
  }
  
  /* TV Frame optimizations for mobile/tablet */
  .tv-frame {
    box-shadow: 
      0 5px 10px rgba(108, 117, 125, 0.15),
      0 2px 4px rgba(108, 117, 125, 0.1),
      inset 0 1px 2px rgba(255, 255, 255, 0.1);
    transform: none !important;
  }
  
  .tv-frame:hover {
    transform: scale(1.01) !important;
    box-shadow: 
      0 8px 16px rgba(108, 117, 125, 0.2),
      0 3px 6px rgba(108, 117, 125, 0.15),
      inset 0 1px 2px rgba(255, 255, 255, 0.15);
  }
  
  .tv-screen img {
    transition: none;
  }
  
  /* Reduce AOS animation intensity on mobile for smoother scrolling */
  [data-aos] {
    transition-duration: 0.6s !important;
  }
  
  /* Disable complex animations on mobile */
  .tv-showcase [data-aos] {
    transition-duration: 0.3s !important;
  }
}

/* Section Styles */
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  text-align: center;
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 3rem;
}

/* Skills Section */
.skills-section {
  background-color: var(--bg-primary);
  transition: all 0.3s ease;
}

.skill-card {
  background: white;
  padding: 2.5rem 2rem;
  border-radius: var(--radius-xl);
  text-align: center;
  box-shadow: var(--shadow-light);
  border: 1px solid var(--border-color);
  transition: var(--transition-normal);
  height: 100%;
}

.skill-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-large);
  border-color: var(--primary-color);
}

.skill-icon {
  width: 80px;
  height: 80px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
    color: white;
}

.skill-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.skill-card p {
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* Featured Work Section */
.featured-work {
  background-color: var(--secondary-color);
}

.featured-project-card {
  background: white;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: var(--transition-normal);
  height: 100%;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.featured-project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-large);
  text-decoration: none;
  color: inherit;
}

.featured-project-card a {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.project-image {
  position: relative;
  overflow: hidden;
  height: 250px;
}

.project-image img {
    width: 100%;
    height: 100%;
  object-fit: cover;
  transition: var(--transition-normal);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(91, 100, 223, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
    opacity: 0; 
  transition: var(--transition-normal);
}

.featured-project-card:hover .project-overlay {
    opacity: 1; 
}

.featured-project-card:hover .project-image img {
  transform: scale(1.1);
}

.project-content {
  padding: 2rem;
}

.project-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.project-content p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

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

.tag {
  background-color: var(--primary-color);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Footer */
footer {
  background-color: var(--footer-bg) !important;
  color: var(--footer-text);
  padding: 2rem 0 2rem;
}

footer i {
  color: var(--footer-text);
  font-size: 1.5rem;
  transition: var(--transition-normal);
}

footer i:hover {
  color: var(--secondary-dark);
  transform: translateY(-2px);
}

footer a {
  text-decoration: none;
  transition: var(--transition-normal);
  color: var(--footer-text) !important;
}

footer a:hover {
  color: var(--primary-color) !important;
}

footer p {
  color: var(--footer-text);
  margin-bottom: 0;
}

/* Work Page Styles */
.work-hero {
  background: transparent;
  margin-top: 2rem;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.work-card {
  background: white;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: var(--transition-normal);
  position: relative;
  border: 1px solid var(--border-color);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.work-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-large);
  border-color: var(--primary-color);
  text-decoration: none;
  color: inherit;
}

.work-card a {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.work-card.featured {
  border: 1.5px solid var(--primary-color);
  box-shadow: var(--shadow-medium);
}

.work-card-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.work-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-normal);
}

.work-card-overlay {
    position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(91, 100, 223, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-normal);
}

.work-card:hover .work-card-overlay {
  opacity: 1;
}

.work-card:hover .work-card-image img {
  transform: scale(1.1);
}

.featured-badge {
  position: absolute;
  top: 1rem;
    right: 1rem; 
  background: var(--primary-color);
    color: white;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
    font-weight: 600;
  z-index: 2;
}

.work-card-content {
  padding: 2rem;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.project-type {
  background-color: var(--primary-color);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}

.project-year {
  color: var(--text-light);
  font-size: 0.9rem;
  font-weight: 500;
}

.work-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.work-card p {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* Filter Tabs */
.filter-section {
  background-color: var(--bg-primary);
  /* border-bottom: 1px solid var(--border-color); */
}

.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: transparent;
  border: 2px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition-normal);
    cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
    color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

/* CTA Section */
.cta-section {
  background: var(--bg-secondary);
}

.cta-section .section-title {
  color: var(--text-primary);
}

.cta-section .section-subtitle {
  color: var(--text-secondary);
}

/* About Page Styles */
.about-hero {
  background: var(--bg-secondary);
  padding: 5rem 0;
  min-height: 80vh;
    display: flex;
  align-items: center;
}

.about-content {
  padding: 2rem 0;
}

.about-content .lead {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.about-actions {
  margin-top: 2rem;
}

.about-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-large);
  position: relative;
}

.about-image img {
  width: 100%;
  height: auto;
  transition: var(--transition-normal);
}

.about-image:hover img {
  transform: scale(1.05);
}

/* Skills & Expertise */
.skills-expertise {
  background-color: var(--bg-primary);
}

.expertise-card {
  background: white;
  padding: 2.5rem 2rem;
  border-radius: var(--radius-xl);
  text-align: center;
  box-shadow: var(--shadow-light);
  border: 1px solid var(--border-color);
  transition: var(--transition-normal);
  height: 100%;
}

.expertise-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-large);
  border-color: var(--primary-color);
}

.expertise-icon {
  width: 80px;
  height: 80px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
    justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: white;
}

.expertise-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.expertise-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.expertise-card li {
  padding: 0.5rem 0;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
}

.expertise-card li:last-child {
  border-bottom: none;
}

/* experience-section */
.experience-section {
  background-color: var(--secondary-color);
  transition: transform 0.3s ease;
  will-change: auto;
}

/* Timeline */
.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--primary-color);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  width: 50%;
}

.timeline-item:nth-child(odd) {
  left: 0;
  padding-right: 3rem;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
  padding-left: 3rem;
  text-align: left;
}

.timeline-marker {
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--primary-color);
  border-radius: 50%;
  border: 4px solid white;
  box-shadow: var(--shadow-medium);
}

.timeline-item:nth-child(odd) .timeline-marker {
  right: -10px;
  top: 0;
}

.timeline-item:nth-child(even) .timeline-marker {
  left: -10px;
  top: 0;
}

.timeline-content {
  background: white;
  padding: 2rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-light);
  border: 1px solid var(--border-color);
}

.timeline-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.timeline-date {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.timeline-content p {
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* Values Section */
.values-section {
  background-color: var(--bg-primary);
}

.value-card {
  background: white;
  padding: 2.5rem 2rem;
  border-radius: var(--radius-xl);
  text-align: center;
  box-shadow: var(--shadow-light);
  border: 1px solid var(--border-color);
  transition: var(--transition-normal);
  height: 100%;
}

.value-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-large);
  border-color: var(--primary-color);
}

.value-icon {
  width: 80px;
  height: 80px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
    align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: white;
}

.value-card h3 {
  font-size: 1.5rem;
    margin-bottom: 1rem;
  color: var(--text-primary);
}

.value-card p {
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* Responsive Timeline */
@media (max-width: 768px) {
  .timeline::before {
    left: 20px;
  }
  
  .timeline-item {
    width: 100%;
    left: 0 !important;
    padding-left: 3rem !important;
    padding-right: 0 !important;
    text-align: left !important;
  }
  
  .timeline-marker {
    left: 10px !important;
    right: auto !important;
  }
  
  .about-hero {
    padding: 3rem 0;
    min-height: auto;
  }
  
  .about-actions {
    flex-direction: column;
    gap: 1rem;
  }
  
  .about-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Contact Page Styles */
.contact-hero {
  background: var(--primary-color);
  color: white;
  padding: 5rem 0;
  text-align: center;
}

.contact-hero .section-title {
  color: white;
  margin-bottom: 1rem;
}

.contact-hero .section-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
}

.hero-cta {
  margin-top: 1.5rem;
}

/* contact-illustration */

/* .contact-illustration {
  padding: 2rem 0;
} */ 

.contact-illustration {
  padding: 2rem 0;
  display: inline-block; /* ensures transform works properly */
  transition: transform 0.3s ease;
}

.contact-illustration:hover {
  animation: pendulum-swing 3s ease-in-out infinite;
}

@keyframes pendulum-swing {
  0%   { transform: rotate(0deg) scale(1); }
  25%  { transform: rotate(5deg) scale(1.05); }
  /* 50%  { transform: rotate(0deg) scale(1); } */
  75%  { transform: rotate(-5deg) scale(1.05); }
  100% { transform: rotate(0deg) scale(1); }
}
/* contact-illustration */

.contact-image {
  max-width: 50%;
  height: auto;
  max-height: 200px;
  opacity: 0.9;
  transition: opacity 0.3s ease;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.contact-image:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.contact-content {
  background-color: var(--bg-primary);
}

.contact-info {
  padding: 2rem 0;
}

.contact-info .lead {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.contact-methods {
  margin-bottom: 3rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-light);
  border: 1px solid var(--border-color);
  transition: var(--transition-normal);
}

.contact-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
  border-color: var(--primary-color);
}

.contact-icon {
  width: 60px;
  height: 60px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1.5rem;
  flex-shrink: 0;
}

.contact-icon i {
  font-size: 1.5rem;
  color: white;
}

.contact-details h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.contact-details p {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.contact-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition-normal);
}

.contact-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.social-links h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

  .social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--transition-normal);
  font-size: 1.25rem;
}

.social-icons a:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

/* Contact Form */
.contact-form-wrapper {
  background: white;
  padding: 3rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-light);
  border: 1px solid var(--border-color);
}

.contact-form .form-group {
  margin-bottom: 1.5rem;
}

.contact-form .form-label {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  display: block;
}

.contact-form .form-control {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  font-size: 1rem;
  transition: var(--transition-normal);
  background-color: var(--bg-primary);
}

.contact-form .form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
  background-color: white;
}

.contact-form .form-control::placeholder {
  color: var(--text-light);
}

.contact-form textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.form-note {
  margin-top: 1rem;
  text-align: center;
}

/* Mobile-specific font fixes */
@media (max-width: 768px) {
  body {
    font-family: 'Avenir', 'Avenir Next', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  
  h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
  }
  
  .contact-hero {
    padding: 3rem 0;
  }
  
  .contact-image {
    max-height: 150px;
  }
  
  .contact-form-wrapper {
    padding: 2rem;
  }
  
  .social-icons {
    justify-content: center;
  }
}

/* UX Case Study Styles */
.case-study-hero {
  background: var(--primary-color);
  color: white;
  position: relative;
  overflow: hidden;
}

.case-study-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="case-grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23case-grain)"/></svg>');
  opacity: 0.3;
}

.case-study-intro {
  position: relative;
  z-index: 2;
  padding: 2rem 0;
}

.project-badge {
  display: inline-block;
  margin-bottom: 1.5rem;
}

.project-badge span {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.case-study-title {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  color: white;
}

.case-study-subtitle {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.project-meta {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.meta-item {
  text-align: center;
}

.meta-label {
  display: block;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.5rem;
}

.meta-value {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
}

.case-study-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  min-height: 500px;
}

.phone-mockup {
  position: relative;
  max-width: 300px;
  width: 100%;
  z-index: 2;
}

.phone-screen {
  width: 100%;
  height: auto;
  border-radius: 25px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  animation: float 6s ease-in-out infinite;
}

/* Problem Section */
.problem-section {
  background-color: var(--bg-primary);
}

.problem-statement {
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  max-width: 800px;
}

.problem-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.problem-stats .stat-item {
  text-align: center;
}

.problem-stats .stat-number {
  display: block;
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-color);
  font-family: var(--font-display);
}

.problem-stats .stat-label {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 500;
  max-width: 200px;
}

/* Process Timeline */
.process-timeline {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.process-step {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  padding: 2rem;
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-light);
  border: 1px solid var(--border-color);
  transition: var(--transition-normal);
}

.process-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-large);
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  flex-shrink: 0;
}

.step-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.step-content p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.step-tools {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tool-tag {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid var(--border-color);
}

/* Research Section */
.research-section {
  background-color: var(--bg-primary);
}

.research-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.research-methods {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.method-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-light);
  border: 1px solid var(--border-color);
}

.method-icon {
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: white;
  flex-shrink: 0;
}

.method-content h4 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.method-content p {
  color: var(--text-secondary);
  margin-bottom: 0;
}

.research-visual {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.research-image {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-medium);
  transition: var(--transition-normal);
}

.research-image:hover {
  transform: scale(1.02);
}

/* Personas & Journey */
.persona-card,
.journey-card {
  background: white;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-light);
  border: 1px solid var(--border-color);
  transition: var(--transition-normal);
}

.persona-card:hover,
.journey-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-large);
}

.persona-card img,
.journey-card img {
  width: 100%;
  height: auto;
}

.persona-content,
.journey-content {
  padding: 2rem;
}

.persona-content h3,
.journey-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.persona-content p,
.journey-content p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.persona-content ul {
    list-style: none;
    padding: 0;
}

.persona-content li {
  padding: 0.5rem 0;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
}

.persona-content li:last-child {
  border-bottom: none;
}

.journey-steps {
    display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.journey-step {
  background-color: var(--primary-color);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Design Process */
.design-process {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.process-phase {
  text-align: center;
}

.process-phase h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.process-phase p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.process-image {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-medium);
  max-width: 100%;
}

.wireframe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.wireframe-grid img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-light);
  transition: var(--transition-normal);
}

.wireframe-grid img:hover {
  transform: scale(1.05);
}

/* Final Design */
.final-design-section {
  background-color: var(--bg-secondary);
}

.design-showcase {
  background: white;
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-light);
  border: 1px solid var(--border-color);
  transition: var(--transition-normal);
}

.design-showcase:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-large);
}

.design-showcase img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
}

.design-showcase h4 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.design-showcase p {
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* Results Section */
.results-section {
  background-color: var(--bg-primary);
}

.result-card {
  background: white;
  padding: 2.5rem 2rem;
  border-radius: var(--radius-xl);
  text-align: center;
  box-shadow: var(--shadow-light);
  border: 1px solid var(--border-color);
  transition: var(--transition-normal);
  height: 100%;
}

.result-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-large);
  border-color: var(--primary-color);
}

.result-icon {
  width: 80px;
  height: 80px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
    justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: white;
}

.result-card h3 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-family: var(--font-display);
}

.result-card p {
  color: var(--text-secondary);
  margin-bottom: 0;
  font-size: 1.1rem;
}

/* Case Study Navigation */
.case-study-nav {
  background-color: var(--bg-secondary);
}


/* Mental Health App Specific Styles */

/* Hero Banner Styles */
.case-study-hero {
  background: var(--primary-color);
  color: white;
  padding: 5rem 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.case-study-content {
  padding-right: 2rem;
}

.case-study-title {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
}

.case-study-subtitle {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
}

.case-study-description {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.case-study-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.tag-white {
  background-color: white;
  color: var(--primary-color);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 0.9rem;
}

.btn-white-border {
  background-color: transparent;
  color: white;
  border: 2px solid white;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-lg);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  transition: var(--transition-normal);
}

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

.hero-image-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.hero-image-small {
  width: 250px;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-large);
}


/* Focus Group Cards */
.focus-group-card {
  background: white;
  padding: 2rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-light);
  border: 1px solid var(--border-color);
  transition: var(--transition-normal);
  height: 100%;
  text-align: center;
}

.focus-group-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
}

.card-icon {
  width: 60px;
  height: 60px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
  font-size: 1.5rem;
}

.focus-group-card h4 {
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.focus-group-card p {
  color: var(--text-secondary);
  margin-bottom: 0;
  line-height: 1.6;
}

/* Project Details */
.detail-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.detail-content {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* Wireframe Grid */
.wireframe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.wireframe-item {
  text-align: center;
}

.wireframe-image {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-medium);
  transition: var(--transition-normal);
}

.wireframe-image-1 {
  width: 200px;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-medium);
  transition: var(--transition-normal);
}

.wireframe-image:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-large);
}

/* 4-Column Wireframe Grid */
.wireframe-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.wireframe-grid-4 .wireframe-item {
  width: 100%;
}

.wireframe-grid-4 .wireframe-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wireframe-grid-4 .wireframe-image:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* 3-Column Wireframe Grid */
.wireframe-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.wireframe-grid-3 .wireframe-item {
  width: 100%;
}

.wireframe-grid-3 .wireframe-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wireframe-grid-3 .wireframe-image:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* 5-Column Wireframe Grid */
.wireframe-grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.wireframe-grid-5 .wireframe-item {
  width: 100%;
}

.wireframe-grid-5 .wireframe-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wireframe-grid-5 .wireframe-image:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Persona Grid Layout */
.persona-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  margin: 2rem 0;
}

.persona-left {
  display: flex;
  flex-direction: column;
}

.persona-right {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.persona-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.persona-image:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Moodboard Container */
.moodboard-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.moodboard-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Logo and High-Fi Grid */
.logo-highfi-grid {
  display: grid;
  grid-template-columns: 70% 30%;
  gap: 2rem;
  margin: 2rem 0;
}

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

.logo-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.highfi-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.highfi-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.highfi-image:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Updated Persona Grid Layout */
.persona-grid-updated {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  margin: 2rem 0;
}

.persona-left-large {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.persona-right-small {
  display: flex;
  flex-direction: column;
}

.persona-image-large {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.persona-image-small {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.persona-image-large:hover,
.persona-image-small:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Updated Logo and High-Fi Grid */
.logo-highfi-grid-updated {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin: 2rem 0;
}

.logo-full-row {
  width: 100%;
}

.logo-image-full {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.highfi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.highfi-image-row {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.highfi-image-row:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Simple Persona Row Layout */
.persona-row-simple {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 2rem 0;
}

.persona-image-simple {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.persona-image-simple:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Logo Container Small */
.logo-container-small {
  max-width: 600px;
  margin: 0 auto;
}

.logo-image-small {
  width: 100%;
  height: auto;
  border-radius: 12px;
  /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);  */
}

/* Creative Brief Images */
.creative-brief-images {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.creative-brief-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.creative-brief-image:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Deliverable Container */
.deliverable-container {
  max-width: 700px;
  margin: 0 auto;
}

.deliverable-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.deliverable-image-1 {
  width: 90%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Design Process Container */
.design-process-container {
  max-width: 700px;
  margin: 0 auto;
}

.design-process-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Persona Row Layout */
.persona-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 2rem 0;
}

.persona-image-row {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.persona-image-row:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  margin-top: 5%;
  border-radius: 12px;
}

.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
}

/* Research Images */
.research-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin: 2rem 0;
}

.research-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.research-image:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.research-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin: 2rem 0;
}

.research-image-small {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.research-image-small:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Moodboard Grid */
.moodboard-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin: 2rem 0;
}

.moodboard-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.moodboard-image:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Final Brochure Grid */
.final-brochure-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin: 2rem 0;
}

.brochure-row-1 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.brochure-row-2 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.brochure-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.brochure-image:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Company Analysis Images */
.company-analysis-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 2rem 0;
}

.company-analysis-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.company-analysis-image:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Sitemap Container */
.sitemap-container {
  max-width: 800px;
  margin: 0 auto;
}

.sitemap-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Logo Design Container */
.logo-design-container {
  max-width: 700px;
  margin: 0 auto;
}

.logo-design-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Project Navigation Grid */
.project-navigation-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin: 2rem 0;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.project-nav-item {
  display: block;
  text-decoration: none;
  color: inherit;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  overflow: hidden;
  position: relative;
}

.project-nav-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  text-decoration: none;
  color: inherit;
}

.project-nav-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
}

.project-nav-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-nav-item:hover .project-nav-image img {
  transform: scale(1.05);
}

.project-nav-content {
  padding: 1.5rem;
}

.project-nav-content h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-color);
}

.project-nav-content p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Welcome Image Styles */
.welcome-image {
  width: 180px;
  height: auto;
  border-radius: var(--radius-lg);
  transition: var(--transition-normal);
}

.welcome-image:hover {
  transform: scale(1.05);
}

/* About Page Slideshow */
.about-slideshow-image {
  width:auto;
  height:auto;
  border-radius: var(--radius-lg);
  transition: var(--transition-normal);
}

/* Journey Animals Styles */
.timeline-animal {
  position: absolute;
  right: -100px;
  top: 50%;
  transform: translateY(-50%);
  width: 120px;
  height: 120px;
  opacity: 0.8;
}

.timeline-animal-left {
  right: auto;
  left: -100px;
}

/* .journey-animal-svg {
  width: 100%;
  height: 100%;
  transition: transform 0.3s ease;
}

.journey-animal-svg:hover {
  transform: scale(1.2);
} */


.journey-animal-svg {
  transition: transform 0.3s ease;
  display: inline-block;
}

.journey-animal-svg:hover {
  animation: run-cycle 0.6s infinite alternate ease-in-out;
}

@keyframes run-cycle {
  0%   { transform: translateX(0) rotate(0deg); }
  25%  { transform: translateX(5px) rotate(3deg); }
  50%  { transform: translateX(10px) rotate(0deg); }
  75%  { transform: translateX(5px) rotate(-3deg); }
  100% { transform: translateX(0) rotate(0deg); }
}


/* Animal Float Animations */
@keyframes catFloat {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes whaleFloat {
  0%, 100% {
    transform: translateY(0px) translateX(0px);
  }
  50% {
    transform: translateY(-5px) translateX(3px);
  }
}

@keyframes raccoonFloat {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-6px) rotate(2deg);
  }
}

@keyframes foxFloat {
  0%, 100% {
    transform: translateY(0px) scale(1);
  }
  50% {
    transform: translateY(-7px) scale(1.02);
  }
}

@keyframes sparkle {
  0%, 100% {
    opacity: 0.8;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

/* Timeline Animal Right Position */
.timeline-animal-right {
  position: absolute;
  right: -80px;
  top: 50%;
  transform: translateY(-50%);
  /* transform: translateX(100%); */
  width: 120px;
  height: 120px;
  opacity: 0.9;
  z-index: 2;
}

/* Star Animation */
.journey-with-snow {
  position: relative;
  overflow: hidden;
  will-change: auto;
}

.snow-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  will-change: auto;
}

.star {
  position: absolute;
  width: 12px;
  height: 12px;
  background: white;
  border-radius: 50%;
  opacity: 0.7;
  animation: starTwinkle ease-in-out infinite;
  will-change: auto;
}

.star:nth-child(1) {
  left: 10%;
  top: 20%;
  animation-duration: 3s;
  animation-delay: 0s;
}

.star:nth-child(2) {
  left: 20%;
  top: 10%;
  animation-duration: 2.5s;
  animation-delay: 0.5s;
}

.star:nth-child(3) {
  left: 30%;
  top: 30%;
  animation-duration: 4s;
  animation-delay: 1s;
}

.star:nth-child(4) {
  left: 40%;
  top: 15%;
  animation-duration: 3.5s;
  animation-delay: 1.5s;
}

.star:nth-child(5) {
  left: 50%;
  top: 25%;
  animation-duration: 2.8s;
  animation-delay: 0.2s;
}

.star:nth-child(6) {
  left: 60%;
  top: 35%;
  animation-duration: 3.2s;
  animation-delay: 2s;
}

.star:nth-child(7) {
  left: 70%;
  top: 20%;
  animation-duration: 4.5s;
  animation-delay: 0.8s;
}

.star:nth-child(8) {
  left: 80%;
  top: 10%;
  animation-duration: 2.2s;
  animation-delay: 1.2s;
}

.star:nth-child(9) {
  left: 90%;
  top: 30%;
  animation-duration: 3.8s;
  animation-delay: 0.3s;
}

.star:nth-child(10) {
  left: 15%;
  top: 40%;
  animation-duration: 2.6s;
  animation-delay: 2.5s;
}

.star:nth-child(11) {
  left: 25%;
  top: 5%;
  animation-duration: 3.3s;
  animation-delay: 1.8s;
}

.star:nth-child(12) {
  left: 35%;
  top: 45%;
  animation-duration: 4.2s;
  animation-delay: 0.7s;
}

.star:nth-child(13) {
  left: 45%;
  top: 8%;
  animation-duration: 2.9s;
  animation-delay: 2.2s;
}

.star:nth-child(14) {
  left: 55%;
  top: 50%;
  animation-duration: 3.6s;
  animation-delay: 0.4s;
}

.star:nth-child(15) {
  left: 65%;
  top: 12%;
  animation-duration: 2.4s;
  animation-delay: 1.6s;
}

.star:nth-child(16) {
  left: 75%;
  top: 38%;
  animation-duration: 4.1s;
  animation-delay: 0.9s;
}

.star:nth-child(17) {
  left: 85%;
  top: 22%;
  animation-duration: 3.1s;
  animation-delay: 2.8s;
}

.star:nth-child(18) {
  left: 95%;
  top: 48%;
  animation-duration: 2.7s;
  animation-delay: 1.4s;
}

.star:nth-child(19) {
  left: 5%;
  top: 18%;
  animation-duration: 3.9s;
  animation-delay: 0.6s;
}

.star:nth-child(20) {
  left: 12%;
  top: 42%;
  animation-duration: 2.3s;
  animation-delay: 2.1s;
}

@keyframes starTwinkle {
  0%, 100% {
    opacity: 0.4;
    transform: scale(0.9);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.1);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-image-row {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-image-small {
    width: 180px;
  }
  
  .case-study-content {
    padding-right: 0;
    text-align: center;
    margin-bottom: 2rem;
  }
  
  .wireframe-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
  }
  
  .wireframe-grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .wireframe-grid-3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .wireframe-grid-5 {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
  
  .persona-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .persona-right {
    gap: 1rem;
  }
  
  .persona-grid-updated {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .persona-left-large {
    gap: 1rem;
  }
  
  .moodboard-container {
    max-width: 100%;
  }
  
  .logo-highfi-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .highfi-section {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .highfi-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .persona-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .persona-row-simple {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .research-images {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .research-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .moodboard-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .brochure-row-1 {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .brochure-row-2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .company-analysis-images {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .sitemap-container {
    max-width: 100%;
  }
  
  .project-navigation-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .project-nav-image {
    height: 150px;
  }
  
  .project-nav-content {
    padding: 1rem;
  }
  
  .project-nav-content h4 {
    font-size: 1.1rem;
  }
  
  .wireframe-image {
    max-width: 250px;
  }
  
  .welcome-image {
    width: 130px;
    margin: 1rem auto;
    display: block;
  }
  
  .hero-welcome {
    text-align: center;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .contact-image-home {
    width: 200px;
    margin: 1rem auto;
    display: block;
  }
  
  /* Additional mobile smooth scrolling optimizations */
  html {
    scroll-behavior: smooth;
    scroll-padding-top: 60px;
  }
  
  /* Optimize scrolling performance on mobile */
  .hero-section,
  .tv-showcase,
  .skills-section,
  .featured-work {
    will-change: transform;
    transform: translateZ(0);
  }
  
  .hero-contact {
    text-align: center;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .timeline-animal {
    position: static;
    transform: none;
    width: 80px;
    height: 80px;
    margin: 1rem auto;
    opacity: 1;
    right: auto;
    left: auto;
  }
  
  .timeline-animal-left {
    left: auto;
    right: auto;
  }
  
  .timeline-animal-right {
    right: auto;
    left: auto;
  }
  
  /* Optimize Journey section animations for mobile/tablet */
  .journey-with-snow {
    overflow: visible;
  }
  
  .star {
    animation-duration: 4s !important;
    opacity: 0.5;
  }
  
  /* Reduce star count on mobile for better performance */
  .star:nth-child(n+11) {
    display: none;
  }
  
  /* Simplify animal animations on mobile */
  .journey-animal-svg {
    animation: none !important;
  }
}

/* User Journey Carousel */
#userJourneyCarousel {
  max-width: 1100px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.journey-carousel-image {
  height: 500px;
  object-fit: cover;
  border-radius: 12px;
}

.carousel-indicators {
  bottom: -50px;
}

.carousel-indicators [data-bs-target] {
  background-color: var(--primary-color);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 5px;
}

.carousel-control-prev,
.carousel-control-next {
  width: 50px;
  height: 50px;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
  background-color: rgba(0, 0, 0, 0.5);
}

.carousel-control-prev {
  left: 20px;
}

.carousel-control-next {
  right: 20px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 20px;
  height: 20px;
}

/* Responsive Design for Case Study */
@media (max-width: 768px) {
  #userJourneyCarousel {
    max-width: 100%;
    margin: 0 15px;
  }
  
  .journey-carousel-image {
    height: 400px;
  }
  
  .carousel-control-prev,
  .carousel-control-next {
    width: 40px;
    height: 40px;
  }
  
  .carousel-control-prev {
    left: 10px;
  }
  
  .carousel-control-next {
    right: 10px;
  }
  
  .carousel-control-prev-icon,
  .carousel-control-next-icon {
    width: 16px;
    height: 16px;
  }
  
  .case-study-title {
    font-size: 2.5rem;
  }
  
  .case-study-subtitle {
    font-size: 1.25rem;
  }
  
  .project-meta {
    justify-content: flex-start;
    gap: 1.5rem;
  }
  
  .cta-section .btn {
    margin-bottom: 1rem;
  }
  
  .cta-section .btn:last-child {
    margin-bottom: 0;
  }
  
  .about-actions .btn {
    margin-bottom: 1rem;
  }
  
  .about-actions .btn:last-child {
    margin-bottom: 0;
  }
  
  .about-cta .btn {
    margin-bottom: 1rem;
  }
  
  .about-cta .btn:last-child {
    margin-bottom: 0;
  }
  
  .problem-stats {
    gap: 2rem;
  }
  
  .problem-stats .stat-number {
    font-size: 2rem; 
  }
  
  .process-step {
    flex-direction: column;
    text-align: center;
  }
  
  .method-item {
    flex-direction: column;
    text-align: center;
  }
  
  .wireframe-grid {
    grid-template-columns: 1fr;
  }
  
  .journey-steps {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .hero-title .name {
    font-size: 2.5rem;
  }
  
  .hero-description {
    font-size: 1.1rem;
  }
  
  .stat-number {
    font-size: 1.5rem;
  }
  
  .stat-label {
    font-size: 0.8rem;
  }
  
  .skill-card,
  .featured-project-card {
    padding: 1.5rem;
  }
}

/* Utility Classes */
.text-gradient {
  color: var(--primary-color);
}

.bg-gradient {
  background: var(--primary-color);
}

.shadow-custom {
  box-shadow: var(--shadow-large);
}

.rounded-custom {
  border-radius: var(--radius-xl);
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-in-left {
  animation: slideInLeft 1s ease-in-out;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in-right {
  animation: slideInRight 1s ease-in-out;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}