/* Base Font Styles */
:root {
  /* Color System */
  --color-dark: #0A0E11;
  --color-light: #ffffff;
  --color-primary: #D6BF81;
  --color-primary-dark: #BD953E;
  --color-secondary: #001D21;
  --color-text-dark: #0A0E11;
  --color-text-gray: #4E4E4E;
  --color-text-light-gray: #FAFAFA;
  --color-bg-light: #F5F5F2;
  --color-bg-lighter: #F9F9F7;
  --color-border: #D7D7D7;
  
  /* Typography Scale */
  --text-xs: 0.875rem;    /* 14px */
  --text-sm: 1rem;        /* 16px */
  --text-base: 1.125rem;  /* 18px */
  --text-lg: 1.25rem;     /* 20px */
  --text-xl: 1.5rem;      /* 24px */
  --text-2xl: 2rem;       /* 32px */
  --text-3xl: 2.5rem;     /* 40px */
  --text-4xl: 3rem;       /* 48px */
  --text-5xl: 3.75rem;    /* 60px */
  --text-6xl: 4.25rem;    /* 68px */
  
  /* Spacing System */
  --space-1: 0.25rem;     /* 4px */
  --space-2: 0.5rem;      /* 8px */
  --space-3: 0.75rem;     /* 12px */
  --space-4: 1rem;        /* 16px */
  --space-5: 1.5rem;      /* 24px */
  --space-6: 2rem;        /* 32px */
  --space-8: 3rem;        /* 48px */
  --space-10: 4rem;       /* 64px */
  --space-12: 6rem;       /* 96px */
  
  /* Border Radius */
  --radius-sm: 0.25rem;   /* 4px */
  --radius-md: 0.5rem;    /* 8px */
  --radius-lg: 0.75rem;   /* 12px */
  --radius-xl: 1rem;      /* 16px */
  --radius-2xl: 1.5rem;   /* 24px */
  --radius-3xl: 2rem;     /* 32px */
}

body {
    font-family: 'Inter', sans-serif;
    font-size: var(--text-base);
    color: var(--color-text-dark);
    line-height: 1.5;
    overflow-x: hidden; /* Prevent horizontal scrollbars */
    content-visibility: auto; /* Modern browsers will skip rendering offscreen content */
    contain-intrinsic-size: 1px 5000px; /* Hint for content-visibility */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: normal;
    line-height: 1.2;
}

h1 {
    font-size: var(--text-5xl);
    margin-bottom: var(--space-6);
}

h2 {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-5);
}

h3 {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-4);
}

h4 {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-3);
}

p {
    font-family: 'Merriweather', serif;
    font-size: var(--text-sm);
    line-height: 1.6;
    color: var(--color-text-gray);
    margin-bottom: var(--space-4);
}

/* Footer paragraph override */
footer p {
    color: inherit;
}

.font-josefin {
    font-family: 'Josefin Sans', sans-serif;
}
.font-merriweather {
    font-family: 'Merriweather', serif;
}
.font-work-sans {
    font-family: 'Work Sans', sans-serif;
}

/* Section Consistency */
section {
    padding: var(--space-10) var(--space-4);
}

@media (min-width: 768px) {
    section {
        padding: var(--space-12) var(--space-8);
    }
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

/* Button Styles */
.btn {
    display: inline-block;
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 500;
    font-size: var(--text-base);
    padding: var(--space-4) var(--space-6);
    border-radius: var(--radius-xl);
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background-color: var(--color-primary-dark);
    color: var(--color-light);
}

.btn-primary:hover {
    background-color: #a68136;
    box-shadow: 0 0 15px 3px rgba(214, 191, 129, 0.6);
    transform: scale(1.03);
}

.btn-secondary {
    background-color: var(--color-light);
    color: var(--color-dark);
}

.btn-secondary:hover {
    background-color: #f0f0f0;
    box-shadow: 0 0 15px 3px rgba(0, 0, 0, 0.15);
    transform: scale(1.03);
}

.btn-dark {
    background-color: var(--color-secondary);
    color: var(--color-light);
}

.btn-dark:hover {
    background-color: #002f35;
    transform: scale(1.03);
}

/* Card Styles */
.card {
    background-color: var(--color-light);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.card-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.card-body {
    padding: var(--space-5);
}

.card-title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-3);
}

.card-text {
    font-size: var(--text-sm);
    margin-bottom: var(--space-4);
}

/* Services Section: Active/Inactive Title Styles */
.service-item.active h3, .step-item.active h3 {
    color: var(--color-text-dark);
}
.service-item:not(.active) h3 {
    color: #767676;
}

/* How It Works Section: Active/Inactive Step Styles */
.step-item.active .step-title {
    color: var(--color-primary);
    font-weight: 600;
}
.step-item:not(.active) .step-title {
    color: #6C6C6C;
    font-weight: 300;
}
.step-item.active .step-dot {
    background-color: var(--color-primary);
    transform: scale(1.2);
}
.step-item:not(.active) .step-dot {
    background-color: #6C6C6C;
}

/* Enhanced transition for smoother visual feedback */
.service-item h3, .step-item .step-title, .step-item .step-dot {
    transition: color 0.4s ease, background-color 0.4s ease, transform 0.3s ease;
}

/* Testimonial Navigation Button Styles */
.testimonial-nav button {
    background-color: var(--color-primary);
    border: 1px solid #E3D09D;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease, opacity 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}
.testimonial-nav button:hover:not(:disabled) {
    background-color: var(--color-primary-dark);
    transform: scale(1.1);
    box-shadow: 0 0 12px 2px rgba(227, 208, 157, 0.7);
}
.testimonial-nav button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}
.testimonial-nav button svg {
    fill: white;
}

/* How It Works Navigation Button Styles */
.how-it-works-nav button {
    background-color: var(--color-primary-dark);
    border: 1px solid #BD953E;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease, opacity 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}
.how-it-works-nav button:hover:not(:disabled) {
    background-color: #a68136;
    transform: scale(1.1);
    box-shadow: 0 0 12px 2px rgba(189, 149, 62, 0.7);
}
.how-it-works-nav button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}
.how-it-works-nav button svg {
    fill: white;
}

/* Footer Social Button Styles */
.footer-social button {
    background-color: var(--color-primary);
    border: 1px solid var(--color-primary);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}
.footer-social button:hover {
    background-color: var(--color-primary-dark);
    transform: scale(1.1);
    box-shadow: 0 0 12px 2px rgba(227, 208, 157, 0.7);
}
.footer-social button svg {
    fill: white;
    width: 20px;
    height: 20px;
}

/* Hero Background Video Styles */
.hero-background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: -1;
    filter: brightness(0.8);
}

/* --- Animation Styles --- */
/* Initial state for elements to animate in */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.8s ease-out 0.3s, transform 0.8s ease-out 0.3s;
}
.animate-fade-in {
    transform: translateY(20px);
}
.animate-slide-up {
    transform: translateY(40px);
}
.animate-slide-left {
    transform: translateX(-40px);
}
.animate-slide-right {
    transform: translateX(40px);
}
.animate-scale-in {
    transform: scale(0.95);
}

/* Final state when element is visible */
.is-visible {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

/* Testimonial animations */
.content-fade-out {
    opacity: 0;
    transition: opacity 0.3s ease-out;
    pointer-events: none; /* Prevent interaction during transition */
}

.content-fade-in {
    opacity: 1;
    transition: opacity 0.3s ease-in;
}

/* Service transitions */
#service-image, #service-description {
    transition: opacity 0.3s ease;
}

/* Service image styles */
#service-image {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

/* Header Fade-in Animation */
header {
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeInDown 0.8s 0.3s ease-out forwards;
}
@keyframes fadeInDown {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Content Staggered Fade-in Animation */
#hero-content > * {
    opacity: 0;
    transform: translateY(30px);
}
#hero-content h1 { animation: fadeInUp 0.8s 0.5s ease-out forwards; }
#hero-content p { animation: fadeInUp 0.8s 0.7s ease-out forwards; }
#hero-content button, #hero-content .btn, #hero-content a { animation: fadeInUp 0.8s 0.9s ease-out forwards; }
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Menu Animation */
#mobile-menu {
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
    transform: translateY(-10px);
    opacity: 0;
}
#mobile-menu:not(.hidden) {
    transform: translateY(0);
    opacity: 1;
}

/* General Button Hover Subtle Scale (excluding special nav buttons) */
button:not(.testimonial-nav button):not(.how-it-works-nav button):not(.footer-social button) {
    transition: transform 0.2s ease-out, background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}
button:hover:not(:disabled):not(.testimonial-nav button):not(.how-it-works-nav button):not(.footer-social button) {
    transform: scale(1.03);
}

/* Glow effect for primary gold buttons */
button.bg-\[\#BD953E\]:hover:not(:disabled) {
    box-shadow: 0 0 15px 3px rgba(214, 191, 129, 0.6);
}
/* Glow effect for primary white buttons */
button.bg-white:hover:not(:disabled) {
    box-shadow: 0 0 15px 3px rgba(0, 0, 0, 0.15);
}

/* Portfolio Item Hover Effect */
#portfolio .animate-scale-in {
    transition: transform 0.3s ease-in-out 0.3s, box-shadow 0.3s ease-in-out 0.3s;
}
#portfolio .animate-scale-in:hover {
    box-shadow: 0 5px 25px 5px rgba(214, 191, 129, 0.4);
    z-index: 5;
    position: relative;
    transition-delay: 0s;
}

/* --- Twinkling Stars Animation --- */
#home, #testimonials, footer, .bg-\[var\(--color-dark\)\], .bg-\[\#0A0E11\] {
    position: relative;
}
.twinkle-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1; /* Above overlays (z-index 0), below content (z-index 10+) */
}

/* Twinkle stars */
.twinkle-star {
    position: absolute;
    /* Base size - JS can override this for variation */
    width: 2px;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    box-shadow: 0 0 5px 1px rgba(255, 255, 210, 0.5); /* Reduced glow */
    animation-name: twinkle-animation;
    animation-iteration-count: infinite;
    opacity: 0; /* Start invisible, animation handles fading */
}

@keyframes twinkle-animation {
    0%, 100% { opacity: 0; transform: scale(0.8); }
    50% { opacity: 0.7; transform: scale(1.05); } /* Reduced peak opacity */
}

.value-item {
    transition: transform 0.4s ease, opacity 0.4s ease;
    opacity: 0.5;
}

.value-item.active {
    opacity: 1;
    transform: translateY(-5px);
}

.value-item.active .value-content {
    opacity: 1;
}

.value-item.active .value-dot {
    transform: scale(1.4);
    background-color: var(--color-primary);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(40px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes slideRight {
    from { transform: translateX(-40px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideLeft {
    from { transform: translateX(40px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    h1 {
        font-size: var(--text-4xl);
    }
    
    h2 {
        font-size: var(--text-3xl);
    }
    
    h3 {
        font-size: var(--text-2xl);
    }
    
    section {
        padding: var(--space-8) var(--space-4);
    }
}

/* Page Transition Overlay - more subtle and faster */
.page-transition-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.5); /* Semi-transparent white instead of solid white */
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease-in-out; /* Faster transition */
  backdrop-filter: blur(5px); /* Blur effect for smoother transition */
  -webkit-backdrop-filter: blur(5px);
}

/* Optimize image loading */
img {
  transition: opacity 0.2s ease; /* Faster transition */
}

img.lazy-load {
  opacity: 0;
  filter: blur(5px);
  transform: scale(1.05);
  transition: opacity 0.2s ease, filter 0.2s ease, transform 0.2s ease;
}

img.lazy-loaded {
  opacity: 1;
  filter: blur(0);
  transform: scale(1);
}

/* Make sure testimonial images are preloaded/cached */
.testimonial-image {
  will-change: opacity, transform;
  transition: opacity 0.2s ease;
}

/* Progressive image loading for background images */
.progressive-bg {
  position: relative;
  background-size: cover;
  background-position: center;
  transition: filter 0.2s ease;
  filter: blur(0);
}

.progressive-bg.loading {
  filter: blur(5px);
  transform: scale(1.05);
}

/* Reduce layout shifts with aspect ratio containers */
.aspect-container {
  position: relative;
  height: 0;
  overflow: hidden;
}

.aspect-16-9 {
  padding-top: 56.25%; /* 16:9 aspect ratio */
}

.aspect-4-3 {
  padding-top: 75%; /* 4:3 aspect ratio */
}

.aspect-1-1 {
  padding-top: 100%; /* 1:1 aspect ratio */
}

.aspect-container > * {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Core content must load first */
main {
  content-visibility: auto;
  contain-intrinsic-size: 1px 2000px;
}

/* For better performance on mobile devices */
@media (max-width: 767px) {
  .animate-on-scroll {
    opacity: 1;
    transform: none;
    animation: none !important;
    transition: none !important;
  }
  
  .page-transition-overlay {
    background-color: rgba(255, 255, 255, 0.3); /* Even more transparent on mobile */
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
  }
  
  /* Disable expensive animations on mobile */
  .twinkle-star {
    display: none;
  }
}

/* How It Works description container fixes */
.description-container {
  position: relative;
  min-height: 350px;
  overflow: hidden;
  transition: min-height 0.3s ease;
}
@media (min-width:768px){
  .description-container{min-height:280px;}
}
@media (min-width:1024px){
  .description-container{min-height:230px;}
}
#step-description-wrapper{
  position:absolute;top:0;left:0;right:0;width:100%;transition:opacity .4s ease,transform .4s ease;
}
#step-description-wrapper.fade-out{opacity:0;transform:translateY(-20px);pointer-events:none;}
#step-description-wrapper.fade-in{opacity:1;transform:translateY(0);}

/* New improved description container styles */
.step-descriptions-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.step-description-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease, transform 0.5s ease;
  transform: translateY(20px);
}

.step-description-item.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  position: relative;
}

/* Calculate description container height based on active content */
@media (max-width: 767px) {
  .description-container {
    min-height: 200px;
    height: auto;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .description-container {
    min-height: 180px;
    height: auto;
  }
}

@media (min-width: 1024px) {
  .description-container {
    min-height: 150px;
    height: auto;
  }
}

/* Process Journey Styles - New Design */
.process-journey-container {
  position: relative;
  width: 100%;
  margin: 2rem 0;
}

/* Journey Path - The connecting line */
.journey-path {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 35px;
  width: 4px;
  height: 100%;
  z-index: 1;
}

.journey-steps {
  position: relative;
  z-index: 2;
}

.journey-step {
  display: flex;
  margin-bottom: 3rem;
  position: relative;
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.journey-step.active {
  opacity: 1;
  transform: translateX(0);
}

/* Scroll reveal animations */
.scroll-reveal {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-reveal.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger delays for sequential appearance */
.journey-steps .scroll-reveal:nth-child(1) { transition-delay: 0.1s; }
.journey-steps .scroll-reveal:nth-child(2) { transition-delay: 0.2s; }
.journey-steps .scroll-reveal:nth-child(3) { transition-delay: 0.3s; }
.journey-steps .scroll-reveal:nth-child(4) { transition-delay: 0.4s; }

/* Growing line animation */
.journey-line {
  position: absolute;
  top: 30px;
  bottom: 30px;
  left: 2px;
  width: 2px;
  background: linear-gradient(to bottom, #BD953E 0%, #e9d097 50%, #BD953E 100%);
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 1.5s ease;
}

.journey-line.is-visible {
  transform: scaleY(1);
}

.step-connector {
  position: relative;
  width: 70px;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 10px;
}

.connector-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #BD953E;
  border: 4px solid #F5F5F2;
  box-shadow: 0 0 0 2px rgba(189, 149, 62, 0.3);
  transition: transform 0.3s ease, background-color 0.3s ease;
  opacity: 0.5;
  transform: scale(0.8);
  transition: transform 0.5s ease, opacity 0.5s ease, box-shadow 0.5s ease;
}

.journey-step.is-visible .connector-dot {
  opacity: 1;
  transform: scale(1.2);
  background-color: #BD953E;
  box-shadow: 0 0 0 4px rgba(189, 149, 62, 0.5), 0 0 20px rgba(189, 149, 62, 0.5);
}

.step-content {
  flex-grow: 1;
  background-color: white;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  position: relative;
  z-index: 2;
}

.journey-step.is-visible .step-content {
  transform: translateY(-5px) translateX(-5px);
  box-shadow: 0 8px 30px rgba(189, 149, 62, 0.15);
}

.step-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.step-number {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 2.5rem;
  font-weight: 600;
  color: rgba(189, 149, 62, 0.2);
  margin-right: 1rem;
  line-height: 1;
}

.journey-step.active .step-number {
  color: rgba(189, 149, 62, 0.8);
}

.step-title {
  color: #0A0E11;
  font-weight: 500;
  transition: color 0.3s ease;
}

.journey-step.active .step-title {
  color: #BD953E;
}

.step-body {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.step-body p {
  flex-grow: 1;
}

.step-icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(189, 149, 62, 0.1);
  color: #BD953E;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.journey-step.active .step-icon {
  background-color: rgba(189, 149, 62, 0.2);
  transform: scale(1.1);
}

.step-svg {
  stroke: #BD953E;
}

/* Journey Navigation */
.journey-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  padding: 0 1rem;
}

.journey-nav-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background-color: white;
  border: 1px solid rgba(189, 149, 62, 0.3);
  color: #0A0E11;
  border-radius: 8px;
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 500;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.journey-nav-btn:hover:not(:disabled) {
  background-color: #BD953E;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(189, 149, 62, 0.25);
}

.journey-nav-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.journey-nav-btn svg {
  fill: currentColor;
  transition: transform 0.3s ease;
}

.journey-nav-btn:hover:not(:disabled) svg {
  transform: scale(1.2);
}

.journey-indicators {
  display: flex;
  gap: 0.5rem;
}

.indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(189, 149, 62, 0.2);
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.indicator.active {
  background-color: #BD953E;
  transform: scale(1.2);
}

.indicator:hover:not(.active) {
  background-color: rgba(189, 149, 62, 0.5);
  transform: scale(1.1);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .journey-line {
    left: 1px;
    width: 2px;
  }
  
  .step-connector {
    width: 40px;
  }
  
  .journey-path {
    left: 20px;
  }
  
  .step-body {
    flex-direction: column;
  }
  
  .step-icon {
    margin-top: 1rem;
    align-self: center;
  }
  
  .step-number {
    font-size: 1.8rem;
  }
  
  .journey-navigation {
    flex-direction: column;
    gap: 1rem;
  }
  
  .journey-indicators {
    order: -1;
  }
}

/* Style enhancements for the process section */
#how-it-works {
  padding-bottom: 4rem;
}

#how-it-works h3 {
  margin-bottom: 3rem;
}

/* Brand New Process Grid Layout */
.process-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 3rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem 3rem;
  }
}

.process-step {
  position: relative;
  padding: 3rem;
  background: white;
  border-radius: 1.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.process-step:hover {
  transform: translateY(-10px);
  box-shadow: 0 16px 40px rgba(189, 149, 62, 0.15);
}

.process-number {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 5rem;
  font-weight: 700;
  line-height: 1;
  color: rgba(189, 149, 62, 0.15);
  transition: color 0.4s ease;
  z-index: 1;
}

.process-step:hover .process-number {
  color: rgba(189, 149, 62, 0.25);
}

.process-content {
  position: relative;
  z-index: 2;
  flex-grow: 1;
}

.process-title {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 2rem;
  font-weight: 600;
  color: #0A0E11;
  margin-bottom: 1.5rem;
  transition: color 0.3s ease;
}

.process-step:hover .process-title {
  color: #BD953E;
}

.process-separator {
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, #BD953E, transparent);
  margin-bottom: 1.5rem;
  transition: width 0.4s ease, background 0.4s ease;
}

.process-step:hover .process-separator {
  width: 100px;
  background: linear-gradient(to right, #BD953E 20%, transparent);
}

.process-description {
  font-family: 'Merriweather', serif;
  font-size: 1rem;
  line-height: 1.8;
  color: #4E4E4E;
  margin-bottom: 2rem;
}

.process-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: auto;
  width: 80px;
  height: 80px;
  color: #BD953E;
  opacity: 0.6;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.process-step:hover .process-icon {
  opacity: 1;
  transform: scale(1.05);
}

.process-svg {
  width: 100%;
  height: 100%;
}

/* Scroll reveal animations for process steps */
@media (min-width: 768px) {
  .process-step {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease, box-shadow 0.4s ease;
  }
  
  .process-step.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  .process-step:hover.is-visible {
    transform: translateY(-10px);
  }
  
  /* Staggered animation delays */
  .process-grid .process-step:nth-child(1) { transition-delay: 0.1s; }
  .process-grid .process-step:nth-child(2) { transition-delay: 0.2s; }
  .process-grid .process-step:nth-child(3) { transition-delay: 0.3s; }
  .process-grid .process-step:nth-child(4) { transition-delay: 0.4s; }
}

/* Style enhancements for the process section */
#how-it-works {
  padding-bottom: 4rem;
}

#how-it-works h3 {
  margin-bottom: 3rem;
}

/* Hero sections consistent spacing */
#services-hero, #about-hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 5rem 0;
}

#services-hero > div, #about-hero > div {
  margin-bottom: 2rem;
}

/* Hero images container */
#services-hero .grid, #about-hero .grid {
  max-height: min-content;
}

@media (min-width: 768px) {
  #services-hero, #about-hero {
    padding: 6rem 0;
  }
}

@media (min-width: 1280px) {
  #services-hero, #about-hero {
    padding: 7rem 0;
  }
}

/* Career Image Carousel Animation */
.career-image-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 0;
}

.carousel-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  will-change: opacity;
}

.carousel-image.active {
  opacity: 1;
}

/* Decorative line on the left side of images */
.career-image-carousel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, #8B6F2B 0%, #A67C2A 50%, #8B6F2B 100%);
  z-index: 2;
  border-radius: 1px;
}

/* Performance optimization - reduce animations when motion is reduced */
@media (prefers-reduced-motion: reduce) {
  .carousel-image {
    transition: opacity 0.3s ease-in-out;
  }
}

/* Job posting card layout improvements */
@media (min-width: 768px) {
  .career-image-carousel {
    border-top-right-radius: 1rem;
    border-bottom-right-radius: 1rem;
  }
}

/* Ensure proper height on mobile */
@media (max-width: 767px) {
  .career-image-carousel {
    border-bottom-left-radius: 1rem;
    border-bottom-right-radius: 1rem;
  }
  
  /* Top-align images on mobile */
  .carousel-image {
    object-position: top center;
  }
} 