:root {
  --background: 0 0% 98%;
  --foreground: 240 10% 3.9%;
  --primary: 270 76% 53%; /* Changed to purple */
  --primary-foreground: 0 0% 98%;
  --secondary: 240 4.8% 95.9%;
  --muted: 240 4.8% 95.9%;
  --muted-foreground: 240 3.8% 46.1%;
  --accent: 270 76% 53%; /* Changed to purple */
  --border: 240 5.9% 90%;
}

.dark {
  --background: 240 10% 3.9%;
  --foreground: 0 0% 98%;
  --primary: 270 76% 53%; /* Changed to purple */
  --primary-foreground: 0 0% 98%;
  --secondary: 240 3.7% 15.9%;
  --muted: 240 3.7% 15.9%;
  --muted-foreground: 240 5% 64.9%;
  --accent: 270 76% 53%; /* Changed to purple */
  --border: 240 3.7% 15.9%;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* Scroll reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

body {
  font-family: 'DM Sans', sans-serif;
  line-height: 1.6;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  transition: background-color 0.3s, color 0.3s;
  min-height: 100vh;
  position: relative;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Skip Link for Accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: hsl(var(--primary));
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 1000;
  font-weight: 600;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 6px;
}

/* Header */
header {
  padding: 20px 0;
  position: sticky;
  top: 0;
  background-color: hsl(var(--background));
  z-index: 100;
  border-bottom: 1px solid hsl(var(--border));
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.5px;
  color: hsl(var(--primary));
  text-decoration: none;
}

/* Ensure logo keeps its styling even as a link */
a.logo:hover {
  color: hsl(var(--primary));
  text-decoration: none;
  background-color: transparent;
}

nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

nav a {
  text-decoration: none;
  color: hsl(var(--foreground));
  font-weight: 500;
  font-size: 16px;
  transition: all 0.3s ease;
  position: relative;
  padding: 8px 12px;
  border-radius: 4px;
}

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

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

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

/* Mobile Menu (Hamburger) */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: hsl(var(--foreground));
  font-size: 24px;
  cursor: pointer;
  z-index: 102;
  border-radius: 4px;
  padding: 8px;
  transition: background-color 0.2s, transform 0.2s;
}

.menu-toggle:hover {
  background-color: hsl(var(--muted));
  transform: scale(1.05);
}

.menu-toggle:focus {
  outline: 2px solid hsl(var(--primary));
  outline-offset: 2px;
}

.menu-toggle:focus:not(:focus-visible) {
  outline: none;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: hsl(var(--background));
  z-index: 101;
  padding: 80px 20px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
  display: flex;
}

.mobile-menu a {
  margin: 20px 0;
  font-size: 24px;
  text-decoration: none;
  color: hsl(var(--foreground));
  font-weight: 600;
  position: relative;
  transition: color 0.3s ease;
}

.mobile-menu a:hover {
  color: hsl(var(--primary-foreground));
  background-color: hsl(var(--primary));
  border-radius: 4px;
  padding: 8px 16px;
}

/* Header Controls Wrapper */
.header-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: hsl(var(--muted));
  color: hsl(var(--foreground));
  border: none;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
}

.theme-toggle:hover {
  background-color: hsl(var(--primary));
  color: white;
  transform: scale(1.05);
}

.theme-toggle:focus {
  outline: 2px solid hsl(var(--primary));
  outline-offset: 2px;
}

.theme-toggle:focus:not(:focus-visible) {
  outline: none;
}

/* Hero Banner */
.hero {
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.particles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.8;
  filter: blur(0px);
  /* Improve performance */
  will-change: transform;
}

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

.hero h2 {
  font-size: 18px;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  margin-bottom: 16px;
}

.hero h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero p {
  font-size: 20px;
  color: hsl(var(--foreground) / 0.8);
  margin-bottom: 8px;
}

.hero-tagline {
  font-size: 24px;
  font-weight: 500;
  margin: 16px 0;
  line-height: 1.4;
  color: hsl(var(--foreground) / 0.9);
}

.hero-tagline span {
  display: block;
}

.specialty-text {
  height: 40px;
  font-size: 28px;
  margin: 28px 0 36px;
  color: hsl(var(--primary));
  position: relative;
  display: flex;
  align-items: center;
  justify-self: center;
  gap: 12px;
}

.specialty-text span {
  font-size: 20px;
  font-weight: 500;
  color: hsl(var(--foreground) / 0.7);
}

@keyframes flipIn {
  0% { opacity: 0; transform: rotateX(90deg); }
  100% { opacity: 1; transform: rotateX(0); }
}

.flipping-text {
  animation: flipIn 0.5s ease-out forwards;
  font-weight: 700;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.primary-btn, .secondary-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 4px;
  font-weight: 500;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.2s, background-color 0.2s;
}

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

.secondary-btn {
  background-color: transparent;
  color: hsl(var(--foreground));
  border: 1px solid hsl(var(--border));
  text-decoration: none;
}

.primary-btn:hover, .secondary-btn:hover {
  transform: translateY(-2px);
}

.primary-btn:hover {
  background-color: hsl(var(--primary) / 0.9);
}

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

/* Portfolio Section */
.portfolio {
  padding: 60px 0;
}

.portfolio-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.portfolio-title {
  font-size: 28px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.portfolio-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.view-toggle {
  display: flex;
  background-color: hsl(var(--secondary));
  border-radius: 4px;
  overflow: hidden;
}

.view-toggle button {
  padding: 8px 12px;
  background: none;
  border: none;
  cursor: pointer;
  color: hsl(var(--muted-foreground));
}

.view-toggle button.active {
  background-color: hsl(var(--primary));
  color: white;
}

/* Grid View */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

/* List View */
.projects-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.project-card {
  border-radius: 8px;
  overflow: hidden;
  background-color: hsl(var(--background));
  border: 1px solid hsl(var(--border));
  transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.project-image {
  width: 100%;
  height: 240px;
  background-color: hsl(var(--secondary));
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: hsl(var(--muted-foreground));
  position: relative;
  overflow: hidden;
  transition: transform 0.5s ease;
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.5) 100%);
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
  opacity: 0.3;
}

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

.project-image span {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: hsl(var(--primary));
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 600;
}

.project-content {
  padding: 20px;
}

.project-company {
  font-size: 14px;
  color: hsl(var(--muted-foreground));
  margin-bottom: 8px;
}

.project-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

.project-description {
  font-size: 14px;
  color: hsl(var(--foreground) / 0.8);
  margin-bottom: 16px;
}

/* Truncate project descriptions in grid view */
.projects-grid .project-description {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 2.8em; /* 2 lines at 1.4 line-height */
}

/* Keep project cards consistent height in grid view */
.projects-grid .project-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.projects-grid .project-image {
  height: 200px;
  flex-shrink: 0;
}

.projects-grid .project-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.projects-grid .project-link {
  margin-top: auto;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: hsl(var(--primary));
  text-decoration: none;
}

.project-link:hover {
  text-decoration: underline;
}

/* Services Section */
.services {
  padding: 60px 0;
  background-color: hsl(var(--secondary) / 0.3);
}

/* Testimonials Section with Marquee */
.testimonials-section {
  padding: 100px 0;
  background-color: hsl(var(--background));
}

.testimonials-section .testimonials-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  margin-bottom: 60px;
  padding: 0 20px;
}

.testimonials-section .section-title {
  font-size: 38px;
  font-weight: 600;
  max-width: 720px;
  line-height: 1.2;
  margin-bottom: 20px;
}

.testimonials-section .section-description {
  font-size: 18px;
  color: hsl(var(--muted-foreground));
  max-width: 600px;
  line-height: 1.6;
}

/* Marquee container */
.testimonials-marquee-container {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.testimonials-marquee-track {
  display: flex;
  overflow: hidden;
  padding: 16px;
  gap: 20px;
}

/* Marquee animation */
.testimonials-marquee-content {
  display: flex;
  justify-content: space-around;
  gap: 20px;
  flex-shrink: 0;
  animation: marquee 40s linear infinite;
}

/* Removed hover pause effect as requested */

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* Gradient overlays */
.marquee-overlay-left,
.marquee-overlay-right {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 20%;
  pointer-events: none;
  z-index: 2;
}

.marquee-overlay-left {
  left: 0;
  background: linear-gradient(to right, hsl(var(--background)), transparent);
}

.marquee-overlay-right {
  right: 0;
  background: linear-gradient(to left, hsl(var(--background)), transparent);
}

/* Individual Testimonial Cards */
.testimonial-card {
  background-color: hsl(var(--background));
  border: 1px solid hsl(var(--border));
  border-radius: 10px;
  padding: 24px;
  width: 300px;
  flex-shrink: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.testimonial-content {
  margin-bottom: 20px;
  position: relative;
}

.testimonial-content:before {
  content: '"';
  font-size: 60px;
  color: hsl(var(--primary)/0.1);
  position: absolute;
  left: -10px;
  top: -20px;
  font-family: Georgia, serif;
}

.testimonial-content p {
  font-size: 15px;
  line-height: 1.6;
  font-style: italic;
  color: hsl(var(--foreground));
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: hsl(var(--primary)/0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
}

.testimonial-avatar i {
  font-size: 20px;
  color: hsl(var(--primary));
}

.testimonial-info h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 2px;
}

.testimonial-info p {
  font-size: 14px;
  color: hsl(var(--muted-foreground));
}

@media (max-width: 768px) {  
  .testimonials-section .section-title {
    font-size: 28px;
  }
  
  .testimonials-section .section-description {
    font-size: 16px;
  }
  
  .testimonial-card {
    width: 260px;
    padding: 20px;
  }
  
  .marquee-overlay-left,
  .marquee-overlay-right {
    width: 15%;
  }
}

/* CTA Section with Highlighter Effect */
.cta-section {
  padding: 100px 0;
  text-align: center;
  background-color: hsl(var(--primary) / 0.05);
  position: relative;
  overflow: hidden;
}

.cta-section h2 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 16px;
}

.cta-section p {
  font-size: 18px;
  color: hsl(var(--foreground) / 0.8);
  margin-bottom: 50px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Highlight Group and Item Styles */
.highlight-group {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
}

.highlighter-item {
  position: relative;
  overflow: hidden;
  padding: 1px;
  border-radius: 24px;
  transition: transform 0.3s ease;
}

.highlighter-item:before {
  content: '';
  pointer-events: none;
  position: absolute;
  left: -384px;
  top: -384px;
  z-index: 30;
  width: 768px;
  height: 768px;
  border-radius: 50%;
  background: linear-gradient(180deg, hsl(var(--primary)), hsl(var(--primary) / 0.3));
  opacity: 0;
  transform: translate(var(--mouse-x, 0), var(--mouse-y, 0));
  filter: blur(100px);
  transition: opacity 0.5s;
}

.highlighter-item:after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 10;
  border-radius: 24px;
  opacity: 0;
  transition: opacity 0.5s;
}

.highlighter-item:hover:before,
.highlight-group:hover .highlighter-item:before {
  opacity: 0.15;
}

.highlighter-item:hover:after,
.highlight-group:hover .highlighter-item:after {
  opacity: 1;
}

.highlighter-card {
  position: relative;
  z-index: 20;
  height: 100%;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid hsl(var(--border));
  background-color: hsl(var(--background));
  padding: 40px 30px;
}

/* Services Canvas for Particles */
.services-canvas {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.1;
  transition: opacity 1s ease-in-out;
}

.highlighter-card:hover .services-canvas {
  opacity: 0.5;
}

/* Skills Animation */
.skills-container {
  position: relative;
  height: 270px;
  width: 300px;
  margin: 0 auto;
}

.skill-tag {
  position: absolute;
  border-radius: 24px;
  background-color: hsl(var(--secondary));
  border: 1px solid hsl(var(--border));
  padding: 6px 12px;
  font-size: 14px;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

#branding {
  right: 12%;
  top: 10%;
}

#graphic-design {
  left: 2%;
  top: 20%;
}

#web-application {
  bottom: 20%;
  right: 1%;
}

#ui-ux {
  bottom: 12%;
  left: 14%;
}

#pointer {
  position: absolute;
  transition: left 0.5s ease-in-out, top 0.5s ease-in-out;
}

#pointer svg {
  fill: hsl(var(--primary));
  stroke: hsl(var(--primary-foreground));
  stroke-width: 1;
  width: 16.8px;
  height: 18.2px;
}

#pointer span {
  position: relative;
  left: 12px;
  top: -4px;
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border-radius: 24px;
  padding: 4px 8px;
  font-size: 12px;
}

.services-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: -20px;
}

.services-content h3 {
  font-size: 32px;
  line-height: 36px;
  font-weight: 700;
  margin-top: 24px;
  margin-bottom: 12px;
}

.services-content p {
  color: hsl(var(--muted-foreground));
  margin-bottom: 16px;
}

.services-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.services-btn {
  padding: 10px 20px;
  background-color: #0077B5;
  color: hsl(var(--primary-foreground));
  text-decoration: none;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.services-btn:hover {
  transform: translateY(-2px);
}

.services-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  background-color: hsl(var(--background));
  border: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
  font-size: 18px;
  transition: all 0.2s ease;
}

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

@media (min-width: 768px) {
  .services-flex {
    display: flex;
    flex-direction: row;
    height: 300px;
    align-items: center;
    justify-content: center;
    gap: 40px;
  }
  
  .services-content {
    margin-top: 0;
    margin-left: 10px;
    width: 400px;
    text-align: left;
    align-items: flex-start;
  }
  
  .services-actions {
    justify-content: flex-start;
  }
}

.services-title {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 40px;
}

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

.service-card {
  padding: 30px;
  border-radius: 8px;
  background-color: hsl(var(--background));
  border: 1px solid hsl(var(--border));
  text-align: center;
  transition: transform 0.3s;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
  border-radius: 50%;
  margin: 0 auto 20px;
  font-size: 24px;
}

.service-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

.service-description {
  font-size: 14px;
  color: hsl(var(--muted-foreground));
}

/* Footer */
footer {
  padding: 60px 0 30px;
  border-top: 1px solid hsl(var(--border));
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
}

.footer-info {
  max-width: 320px;
}

.footer-logo {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-desc {
  font-size: 14px;
  color: hsl(var(--muted-foreground));
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: hsl(var(--muted));
  color: hsl(var(--foreground));
  border-radius: 50%;
  transition: background-color 0.2s;
  text-decoration: none;
}

.social-link:hover {
  background-color: hsl(var(--primary));
  color: white;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-links a {
  font-size: 14px;
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
}

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

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

.footer-links a:hover::after {
  width: 100%;
}

.footer-copyright {
  text-align: center;
  font-size: 14px;
  color: hsl(var(--muted-foreground));
  padding-top: 40px;
}

/* Dark mode switch */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 20px;
  margin-left: 15px;
  color: hsl(var(--foreground));
  transition: transform 0.3s, color 0.3s;
}

.theme-toggle:hover {
  transform: rotate(15deg);
  color: hsl(var(--primary));
}

.theme-toggle .moon-icon,
.theme-toggle .sun-icon {
  position: absolute;
  transition: opacity 0.3s, transform 0.5s;
}

.theme-toggle .moon-icon {
  opacity: 0;
  transform: translateY(10px);
}

.theme-toggle .sun-icon {
  opacity: 1;
  transform: translateY(0);
}

.dark .theme-toggle .moon-icon {
  opacity: 1;
  transform: translateY(0);
}

.dark .theme-toggle .sun-icon {
  opacity: 0;
  transform: translateY(-10px);
}

/* Floating Navigation for Case Studies */
.case-study-nav {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background-color: hsl(var(--background)/0.95);
  border: 1px solid hsl(var(--border));
  border-radius: 50px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  display: flex;
  padding: 12px;
  z-index: 100;
  opacity: 0;
  transform: translateX(-50%) translateY(100px);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.case-study-nav.active {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.case-study-nav a {
  padding: 10px 18px;
  margin: 0 3px;
  text-decoration: none;
  color: hsl(var(--foreground)/0.8);
  font-size: 14px;
  font-weight: 500;
  border-radius: 30px;
  transition: all 0.3s ease;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.case-study-nav a::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background-color: hsl(var(--primary));
  transition: width 0.3s ease;
  border-radius: 3px;
}

.case-study-nav a:hover::before,
.case-study-nav a.active::before {
  width: 50%;
}

.case-study-nav a:hover {
  color: white;
  background-color: hsl(var(--primary));
}

.case-study-nav a.active {
  background-color: hsl(var(--primary));
  color: white;
  font-weight: 600;
}

/* Brighten floating navigation in dark mode */
.dark .case-study-nav {
  background-color: hsl(var(--background)/0.85);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.dark .case-study-nav a {
  color: hsl(var(--foreground)/0.9);
}

/* Project Category Dropdown */
.category-dropdown {
  position: relative;
  margin-right: 16px;
}

.category-dropdown-label {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  background-color: hsl(var(--secondary));
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
}

.category-dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: hsl(var(--background));
  min-width: 160px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  overflow: hidden;
  display: none;
  z-index: 1;
}

.category-dropdown-content a {
  padding: 10px 16px;
  display: block;
  text-decoration: none;
  color: hsl(var(--foreground));
  font-size: 14px;
  transition: background-color 0.2s;
}

.category-dropdown-content a:hover {
  background-color: hsl(var(--primary));
  color: white;
}

.category-dropdown.active .category-dropdown-content {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

/* About page styling */
.about-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 20px;
}

.about-header {
  text-align: center;
  margin-bottom: 60px;
}

.about-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
}

.about-subtitle {
  font-size: 18px;
  color: hsl(var(--muted-foreground));
  max-width: 600px;
  margin: 0 auto;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.about-text {
  font-size: 16px;
  line-height: 1.7;
}

.about-text p {
  margin-bottom: 16px;
}

.about-image {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-color: hsl(var(--secondary));
}

.hobbies-section {
  margin: 80px 0;
}

.hobbies-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 40px;
  text-align: center;
}

.hobbies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.hobby-card {
  padding: 20px;
  border-radius: 8px;
  background-color: hsl(var(--secondary)/0.3);
  text-align: center;
  transition: transform 0.3s;
}

.hobby-card:hover {
  transform: translateY(-5px);
}

.hobby-icon {
  font-size: 32px;
  margin-bottom: 16px;
  color: hsl(var(--primary));
}

.hobby-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.journey-section {
  margin: 80px 0;
  padding: 40px 0;
  max-width: 1200px;
  margin: 0 auto;
}

.journey-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 15px;
  text-align: center;
}

.journey-subtitle {
  font-size: 16px;
  color: hsl(var(--muted-foreground));
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
}

.journey-timeline {
  position: relative;
  margin: 0 auto;
  padding-top: 40px;
  padding-bottom: 80px;
}

/* Timeline progress container */
.timeline-progress-container {
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 30px;
  display: flex;
  justify-content: center;
  z-index: 10;
}

.timeline-progress-track {
  position: relative;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, transparent 0%, hsl(var(--muted)) 5%, hsl(var(--muted)) 95%, transparent 100%);
  opacity: 0.7;
  overflow: hidden;
}

.timeline-progress-indicator {
  position: absolute;
  width: 2px;
  height: 0;
  background: linear-gradient(to top, hsl(var(--primary)) 0%, hsl(var(--primary)/0.7) 70%, transparent 100%);
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.timeline-item {
  position: relative;
  padding: 0 0 50px 80px;
  margin-left: 30px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0.7;
  transform: translateY(20px);
}

.timeline-item.active {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item.in-view {
  /* This provides a subtle visual cue when scrolling back up */
  opacity: 0.85;
}

.timeline-dot {
  position: absolute;
  left: 19px;
  top: 20px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: hsl(var(--background));
  border: 2px solid hsl(var(--muted));
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-dot-inner {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: hsl(var(--primary));
  transform: scale(0);
  transition: transform 0.3s ease 0.2s;
}

.timeline-item.active .timeline-dot-inner {
  transform: scale(1);
}

.timeline-content {
  padding: 25px;
  background-color: hsl(var(--background));
  border-radius: 12px;
  border: 1px solid hsl(var(--border));
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05), 
              0 15px 35px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.timeline-item.active .timeline-content {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08), 
              0 20px 40px rgba(0, 0, 0, 0.06);
}

.timeline-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: hsl(var(--primary));
  opacity: 0.8;
}

.timeline-year {
  font-size: 15px;
  color: hsl(var(--primary));
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.timeline-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 15px;
}

.timeline-description {
  font-size: 15px;
  color: hsl(var(--muted-foreground));
  margin-bottom: 20px;
  line-height: 1.6;
}

.timeline-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: 20px;
}

.timeline-image {
  border-radius: 8px;
  width: 100%;
  height: 140px;
  object-fit: cover;
  transition: transform 0.3s ease;
  border: 1px solid hsl(var(--border));
}

.timeline-image:hover {
  transform: scale(1.03);
}

/* Other Works Section */
.other-works-section {
  padding: 100px 0;
  background-color: hsl(var(--background));
}

.other-works-title {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 50px;
}

.other-works-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.other-works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
}

.other-work-card {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: hsl(var(--background));
}

.other-work-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.other-work-image {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.other-work-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.4) 100%);
}

.other-work-content {
  padding: 20px;
}

.other-work-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 5px;
}

.other-work-content p {
  font-size: 14px;
  color: hsl(var(--muted-foreground));
}

.other-work-link {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: hsl(var(--primary));
  color: white;
  border-radius: 50%;
  text-decoration: none;
  opacity: 0;
  transform: translateX(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.other-work-card:hover .other-work-link {
  opacity: 1;
  transform: translateX(0);
}

.other-works-navigation {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 50px;
}

.other-works-nav-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: hsl(var(--background));
  border: 1px solid hsl(var(--border));
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.other-works-nav-btn:hover {
  background-color: hsl(var(--primary));
  color: white;
}

.other-works-nav-btn.prev {
  box-shadow: -5px 5px 15px rgba(0, 0, 0, 0.05);
}

.other-works-nav-btn.next {
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
  .other-works-grid {
    grid-template-columns: 1fr;
  }
}

/* Case Study Page */
.case-study-header {
  padding: 120px 0 80px;
  background-color: hsl(var(--secondary)/0.3);
  text-align: center;
  margin-top: -40px; /* Avoid header overlap */
}

.case-study-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 16px;
}

.case-study-meta {
  font-size: 16px;
  color: hsl(var(--muted-foreground));
  margin-bottom: 32px;
}

.case-study-meta span {
  margin: 0 8px;
}

/* Regular case study hero */
.case-study-hero {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.case-study-hero img {
  width: 100%;
  height: auto;
}

/* Scroll Animation for Case Study Hero */
.case-study-scroll-container {
  min-height: 60rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 8rem 2rem 2rem;
  perspective: 1000px;
}

.case-study-scroll-container.mobile {
  height: 40rem;
}

.case-study-scroll-inner {
  width: 100%;
  padding: 10rem 0;
  position: relative;
  perspective: 1000px;
}

.case-study-scroll-header {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  transition: transform 0.1s ease-out;
}

.case-study-scroll-header h1 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.case-study-scroll-header h1 span {
  font-size: 4rem;
  font-weight: 700;
  margin-top: 0.5rem;
  line-height: 1;
  display: block;
  color: hsl(var(--primary));
}

.case-study-scroll-card {
  max-width: 900px;
  height: 40rem;
  width: 100%;
  margin: -3rem auto 0;
  border: 4px solid hsl(var(--border));
  padding: 1.5rem;
  background-color: hsl(var(--background));
  border-radius: 30px;
  box-shadow: 0 9px 20px rgba(0,0,0,0.3), 
              0 37px 37px rgba(0,0,0,0.25), 
              0 84px 50px rgba(0,0,0,0.2), 
              0 149px 60px rgba(0,0,0,0.1), 
              0 233px 65px rgba(0,0,0,0.03);
  transform: perspective(1000px) rotateX(20deg) scale(1.05);
  transition: transform 0.1s ease-out, box-shadow 0.1s ease-out;
}

.case-study-scroll-container.mobile .case-study-scroll-card {
  height: 30rem;
  padding: 0.5rem;
}

.case-study-scroll-content {
  height: 100%;
  width: 100%;
  overflow: hidden;
  border-radius: 20px;
  background-color: hsl(var(--secondary));
}

.case-study-scroll-content img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
}

/* Featured Project with Scroll Animation */
.featured-scroll-container {
  height: 30rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  perspective: 1000px;
  margin: 40px 0;
}

.featured-scroll-container.mobile {
  height: 25rem;
}

.featured-scroll-inner {
  width: 100%;
  padding: 2rem 0;
  position: relative;
  perspective: 1000px;
}

.featured-scroll-card {
  max-width: 600px;
  height: 25rem;
  width: 100%;
  margin: 0 auto;
  border: 4px solid hsl(var(--border));
  padding: 1rem;
  background-color: hsl(var(--background));
  border-radius: 20px;
  box-shadow: 0 9px 20px rgba(0,0,0,0.3), 
              0 37px 37px rgba(0,0,0,0.25), 
              0 84px 50px rgba(0,0,0,0.2);
  transform: perspective(1000px) rotateX(15deg) scale(1.05);
  transition: transform 0.1s ease-out, box-shadow 0.1s ease-out;
}

.featured-scroll-container.mobile .featured-scroll-card {
  height: 20rem;
  padding: 0.5rem;
}

.featured-scroll-content {
  height: 100%;
  width: 100%;
  overflow: hidden;
  border-radius: 15px;
  background-color: hsl(var(--secondary));
}

.featured-scroll-content img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Helper classes for featured project */
.text-center {
  text-align: center;
}

.mt-3 {
  margin-top: 1rem;
}

.mt-4 {
  margin-top: 1.5rem;
}

.case-study-section {
  max-width: 900px;
  margin: 100px auto;
  padding: 0 20px;
  position: relative;
}

.case-study-section:first-of-type {
  margin-top: 140px;
}

/* Add padding to the bottom of the page for floating nav */
body.case-study-page {
  padding-bottom: 100px;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 32px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background-color: hsl(var(--primary));
  border-radius: 2px;
}

.section-subtitle {
  font-size: 22px;
  font-weight: 600;
  margin: 40px 0 20px;
  color: hsl(var(--foreground)/0.95);
}

.section-content {
  font-size: 17px;
  line-height: 1.9;
  color: hsl(var(--foreground)/0.85);
}

.section-content p {
  margin-bottom: 24px;
}

.section-content ul, .section-content ol {
  margin: 24px 0;
  padding-left: 28px;
}

.section-content li {
  margin-bottom: 12px;
  position: relative;
}

.section-content ul li::marker {
  color: hsl(var(--primary));
}

.case-study-image {
  margin: 50px 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

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

.case-study-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.case-study-image:hover img {
  transform: scale(1.02);
}

.case-study-quote {
  padding: 35px;
  border-left: 5px solid hsl(var(--primary));
  background-color: hsl(var(--secondary)/0.3);
  border-radius: 0 8px 8px 0;
  margin: 40px 0;
  font-style: italic;
  font-size: 19px;
  line-height: 1.8;
  position: relative;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.case-study-quote::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 12px;
  font-size: 80px;
  color: hsl(var(--primary)/0.2);
  font-family: Georgia, serif;
  line-height: 1;
}

.case-study-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 20px;
  margin: 40px 0;
}

.stat-card {
  background-color: hsl(var(--background));
  border: 1px solid hsl(var(--border));
  border-radius: 16px;
  padding: 25px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

/* Bento grid layout with different sizes */
.stat-card:nth-child(1) {
  grid-column: span 2;
  grid-row: span 1;
  background-color: hsl(var(--primary)/0.1);
}

.stat-card:nth-child(4) {
  grid-column: span 2;
  grid-row: span 1;
  background-color: hsl(var(--primary)/0.1);
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  border-color: hsl(var(--primary)/0.3);
}

.stat-number {
  font-size: 42px;
  font-weight: 700;
  color: hsl(var(--primary));
  margin-bottom: 10px;
  line-height: 1;
}

.stat-label {
  font-size: 15px;
  color: hsl(var(--foreground)/0.8);
  letter-spacing: 0.5px;
  font-weight: 500;
}

/* Mobile responsive bento grid */
@media (max-width: 768px) {
  .case-study-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stat-card:nth-child(1),
  .stat-card:nth-child(4) {
    grid-column: span 2;
  }
}

.process-steps {
  position: relative;
  margin: 60px 0;
  padding-left: 45px;
}

.process-step {
  position: relative;
  margin-bottom: 50px;
  padding-bottom: 20px;
}

.process-step::before {
  content: "";
  position: absolute;
  left: -45px;
  top: 0;
  width: 30px;
  height: 30px;
  background-color: hsl(var(--primary));
  border-radius: 50%;
  z-index: 2;
}

.process-step::after {
  content: "";
  position: absolute;
  left: -30px;
  top: 30px;
  bottom: 0;
  width: 2px;
  background-color: hsl(var(--border));
  z-index: 1;
}

.process-step:last-child::after {
  display: none;
}

.step-number {
  position: absolute;
  left: -45px;
  top: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 14px;
  z-index: 3;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 36px;
  }
  
  .hero p {
    font-size: 18px;
  }

  /* Header and Navigation Mobile Styles */
  nav {
    display: none;
  }
  
  .menu-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    font-size: 20px;
    color: hsl(var(--foreground));
    cursor: pointer;
  }
  
  .mobile-menu.active {
    display: flex;
  }
  
  /* Portfolio Mobile Styles */
  .portfolio-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-container {
    flex-direction: column;
  }
  
  .about-content {
    grid-template-columns: 1fr;
  }
  
  /* Timeline mobile styles */
  .journey-section {
    padding: 20px;
  }
  
  .timeline-progress-container {
    left: 10px;
  }
  
  .timeline-item {
    padding: 0 0 40px 50px;
    margin-left: 15px;
  }
  
  .timeline-dot {
    left: 9px;
  }
  
  .timeline-images {
    grid-template-columns: 1fr;
  }
  
  .timeline-image {
    height: 180px;
  }
  
  .case-study-title {
    font-size: 36px;
  }
  
  .section-title {
    font-size: 28px;
  }
  
  .case-study-nav {
    width: auto;
    max-width: 90%;
    overflow-x: auto;
    padding: 8px;
    bottom: 15px;
    justify-content: center;
    /* Hide scrollbar but allow scrolling */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
  }
  
  .case-study-nav::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
  }
  
  .case-study-nav a {
    padding: 6px 10px;
    margin: 0 3px;
    font-size: 12px;
    /* Prevent text from getting cut off */
    flex-shrink: 0;
  }
  
  /* Scroll Animation Mobile Adjustments */
  .case-study-scroll-container {
    min-height: 40rem;
    padding: 5rem 1rem 1rem;
  }
  
  .case-study-scroll-inner {
    padding: 3rem 0;
  }
  
  .case-study-scroll-header h1 {
    font-size: 2rem;
  }
  
  .case-study-scroll-header h1 span {
    font-size: 2.5rem;
  }
}
/* Image Slider for Case Studies */
.image-slider {
  position: relative;
  width: 100%;
  margin: 2rem 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.slider-image {
  display: none;
  width: 100%;
}

.slider-image img {
  width: 100%;
  display: block;
  border-radius: 8px;
}

.slider-controls {
  position: absolute;
  bottom: 20px;
  right: 20px;
  display: flex;
  gap: 10px;
}

.slider-prev,
.slider-next {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
  opacity: 0.8;
}

.slider-prev:hover,
.slider-next:hover {
  background-color: hsl(var(--accent));
  opacity: 1;
}

/* Enhanced Visual Case Study Elements */
.full-width-image {
  margin: 40px -20px;
  position: relative;
}

.full-width-image img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
}

.image-caption {
  font-size: 14px;
  color: hsl(var(--muted-foreground));
  text-align: center;
  margin-top: 12px;
  font-style: italic;
}

.visual-features {
  margin-top: 50px;
}

.feature-with-image {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-bottom: 50px;
}

.feature-image {
  flex: 1;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.feature-image img {
  width: 100%;
  height: auto;
  display: block;
}

.feature-description {
  flex: 1;
  padding: 20px 0;
}

.feature-description h4 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 16px;
  color: hsl(var(--primary));
}

.feature-description p {
  font-size: 16px;
  line-height: 1.6;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 20px;
  margin: 40px 0;
}

.grid-image {
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.grid-image img {
  width: 100%;
  height: auto;
  display: block;
}

.grid-image:hover {
  transform: translateY(-5px);
}

.additional-features {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.feature-item {
  padding: 25px;
  border-radius: 8px;
  background-color: hsl(var(--background));
  border: 1px solid hsl(var(--border));
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-item i {
  font-size: 28px;
  color: hsl(var(--primary));
  margin-bottom: 15px;
}

.feature-item h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}

.feature-item p {
  font-size: 15px;
  color: hsl(var(--muted-foreground));
  line-height: 1.5;
}

@media (min-width: 768px) {
  .full-width-image {
    margin: 50px -40px;
  }
  
  .feature-with-image {
    flex-direction: row;
    align-items: center;
  }
  
  .feature-with-image.reverse {
    flex-direction: row-reverse;
  }
  
  .feature-description {
    padding: 0 20px;
  }
  
  .image-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .additional-features {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Key Takeaways & Impact Section styling */
.key-takeaways {
  background-color: hsl(var(--secondary));
  padding: 2rem;
  border-radius: 8px;
  margin: 2rem 0;
}

.key-takeaways h3 {
  margin-top: 0;
  color: hsl(var(--primary));
}

.impact-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.impact-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.impact-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: hsl(var(--primary));
  margin-bottom: 0.5rem;
}

.research-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.research-stat {
  background-color: hsl(var(--secondary));
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
}

.stat-percentage {
  font-size: 2.5rem;
  font-weight: 700;
  color: hsl(var(--primary));
  margin-bottom: 0.5rem;
}

.challenge-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.challenge-card {
  background-color: hsl(var(--secondary));
  padding: 1.5rem;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.challenge-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.challenge-card i {
  font-size: 2rem;
  color: hsl(var(--primary));
  margin-bottom: 1rem;
}

.challenge-card h4 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.goals-list {
  margin: 2rem 0;
}

.goal-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.goal-item i {
  color: hsl(var(--primary));
  font-size: 1.25rem;
  margin-right: 1rem;
  margin-top: 0.25rem;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: hsl(var(--accent));
}

/* Mobile-friendly positioning for back-to-top button */
@media (max-width: 768px) {
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}
