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

:root {
    --brand-orange: rgb(239, 142, 124);
    --text-dark: #333;
    --text-light: #f4f4f4;
    --bg-warm-white: rgb(215, 198, 176);
    --gradient-start: rgb(229, 109, 115);
    --gradient-end: rgb(226, 166, 121);
    --header-height: 70px;
}

html {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Sans Pro', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-warm-white);
    min-height: 100%;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    position: relative;
}

/* Prevent scrolling until experience starts */
body.scroll-locked {
    overflow: hidden;
    height: 100vh;
    touch-action: none; /* Disable touch scrolling for mobile */
}

/* Fixed Header and Navigation */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0);
    z-index: 2000; /* Increased z-index to ensure it stays above all other elements */
    transition: background-color 0.5s ease, box-shadow 0.5s ease, opacity 0.5s ease;
    pointer-events: auto !important; /* Ensure pointer events are always enabled */
    opacity: 0;
}



.site-header.visible {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    opacity: 1;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 40px;
    position: relative;
}

/* Logo in the header */
.logo-container {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    height: 70px; /* Adjusted to match new logo height or --header-height */
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-logo {
    height: 70px;
    width: auto;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.header-logo.visible {
    opacity: 1;
}

/* Navigation on the left */
.main-nav {
    display: flex;
    gap: 30px;
    margin-right: auto;
}

.nav-item {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease;
}

.nav-item:hover {
    color: var(--brand-orange);
}

/* Contact Button Border Animation Properties */
@property --border-angle {
  syntax: '<angle>';
  initial-value: 0turn;
  inherits: true;
}

/* Contact button on the right */
.contact-button {
    /* Basic styling */
    font-family: 'Montserrat', sans-serif;
    background-color: var(--brand-orange); /* Explicit solid background */
    color: white;
    padding: 10px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    margin-left: auto;
    position: relative;
    z-index: 1;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(239, 142, 124, 0.3);
    
    /* Start with no visible border */
    border: 0px solid transparent;
    
    /* Special border trick - same color as background inside */
    background-image: linear-gradient(var(--brand-orange), var(--brand-orange)),
                      conic-gradient(
                          from var(--border-angle), 
                          var(--gradient-start), 
                          rgba(255, 255, 255, 0.9), 
                          var(--gradient-end), 
                          rgba(255, 255, 255, 0.9), 
                          var(--gradient-start)
                      );
    background-origin: border-box;
    background-clip: padding-box, border-box;
    
    /* Smooth transition for all properties including border width */
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1),
                border-width 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Hover state */
.contact-button:hover {
    transform: translateY(-2px) scale(1.05);
    background-color: #f07d63; /* Solid background color for hover */
    background-image: linear-gradient(#f07d63, #f07d63), /* Update gradient with hover color */
                      conic-gradient(
                          from var(--border-angle), 
                          var(--gradient-start), 
                          rgba(255, 255, 255, 0.9), 
                          var(--gradient-end), 
                          rgba(255, 255, 255, 0.9), 
                          var(--gradient-start)
                      );
    box-shadow: 0 6px 15px rgba(239, 142, 124, 0.4);
    
    /* Expand border on hover */
    border-width: 4px;
    
    /* Start animation only on hover */
    animation: border-rotate 2s linear infinite;
}

/* Active/click state */
.contact-button:active {
    transform: translateY(1px) scale(0.98);
}

/* Contact button click animation class (added via JS) */
.contact-button-clicked {
    animation: clickPulseMagic 1.2s cubic-bezier(0.19, 1, 0.22, 1) forwards !important; /* Override other animations */
    box-shadow: 0 0 40px var(--brand-orange);
}

/* Border rotation animation */
@keyframes border-rotate {
    to {
        --border-angle: 1turn;
    }
}

/* Fallback for browsers that don't support @property */
@supports not (background: conic-gradient(from var(--border-angle), red, blue)) {
    .contact-button {
        /* Start with no visible border */
        border: 0px solid var(--brand-orange);
        transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1), 
                    border-width 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }
    
    .contact-button:hover {
        /* Expand border on hover */
        border-width: 4px;
        border-color: transparent;
        background-image: none;
        position: relative;
    }
    
    .contact-button:hover:before {
        content: '';
        position: absolute;
        top: -4px;
        left: -4px;
        right: -4px;
        bottom: -4px;
        background: linear-gradient(
            90deg,
            var(--gradient-start),
            rgba(255, 255, 255, 0.9),
            var(--gradient-end),
            rgba(255, 255, 255, 0.9),
            var(--gradient-start)
        );
        border-radius: 55px;
        z-index: -1;
        background-size: 200% 100%;
        animation: gradient-slide 2s linear infinite;
    }
    
    @keyframes gradient-slide {
        0% { background-position: 0% 0; }
        100% { background-position: 200% 0; }
    }
}

/* Keyframes for the click animation */
@keyframes clickPulseMagic {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 142, 124, 0.9);
    }
    20% {
        box-shadow: 0 0 0 15px rgba(239, 142, 124, 0.6);
    }
    40% {
        box-shadow: 0 0 0 30px rgba(239, 142, 124, 0.4);
    }
    60% {
        box-shadow: 0 0 0 45px rgba(239, 142, 124, 0.2);
    }
    80% {
        box-shadow: 0 0 0 60px rgba(239, 142, 124, 0.1);
    }
    100% {
        box-shadow: 0 0 0 70px rgba(239, 142, 124, 0);
    }
}

/* Particles container for the click effect */
.particles-container {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Particle elements */
.particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.8);
}

/* Different particle types */
.particle-glow {
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.9), var(--gradient-start) 60%, transparent 70%);
}

.particle-spark {
    background: radial-gradient(circle at center, #fff, var(--gradient-end) 60%, transparent 70%);
}

.particle-star {
    background: white;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    transform: rotate(0deg);
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    margin-left: 20px;
    opacity: 0; /* Initially hidden for fade-in */
    transition: opacity 0.5s ease; /* Match header/logo fade */
}

.mobile-menu-toggle.visible {
    opacity: 1;
}

.site-header.visible .mobile-menu-toggle {
    opacity: 1;
}

.hamburger-line {
    width: 100%;
    height: 2px;
    background-color: var(--text-dark);
    transition: all 0.3s ease;
}

/* Hamburger animation when menu is open */
.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
    position: fixed;
    top: var(--header-height);
    right: 0;
    width: 250px;
    height: calc(100vh - var(--header-height));
    background-color: rgba(255, 255, 255, 0.95);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 999;
    padding: 20px;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    display: none;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-nav .nav-item {
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 18px;
}

/* Mobile Contact Button Styling */
.mobile-nav .mobile-contact-button {
    margin-top: 15px;
    background-color: var(--brand-orange);
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    text-align: center;
    font-weight: 600;
    border: none;
    box-shadow: 0 4px 12px rgba(239, 142, 124, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mobile-nav .mobile-contact-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(239, 142, 124, 0.4);
}

.mobile-nav .mobile-contact-button:active {
    transform: translateY(1px);
}

/* Intro Animation Screen */
#intro-screen {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Sun Animation */
.sun-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.sun {
    position: absolute;
    bottom: -100vw;
    left: 0;
    width: 100vw;
    height: 100vw;
    border-radius: 50%;
    background: radial-gradient(circle at center,
        var(--gradient-start) 0%,
        var(--gradient-end) 100%);
    box-shadow: 0 0 50px rgba(239, 142, 124, 0.5);
    transform-origin: center bottom;
}

/* About Card */
.about-card {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 700px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 15;
    opacity: 0;
    transition: opacity 0.5s ease;
    bottom: 40px !important;
}

/* About Header with Name and Role */
.about-header {
    margin-bottom: 20px;
}

.name-role-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.about-header h2 {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    font-size: 2rem;
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
}

.name-animation {
    color: var(--brand-orange);
    position: relative;
    display: inline-block;
    font-weight: 700;
}

/* Role Container and Animation */
.role-container {
    display: inline-block;
    position: relative;
    height: 30px;
    overflow: hidden;
    vertical-align: middle;
    min-width: 300px; /* Wider container for longer role titles */
}

.role-wrapper {
    position: absolute;
    width: 100%;
}

.role {
    font-family: 'Montserrat', sans-serif;
    display: block;
    height: 30px;
    line-height: 30px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand-orange);
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    transform: translateY(30px);
    transition: opacity 0.4s ease, transform 0.4s ease, font-size 0.3s ease;
    white-space: nowrap; /* Prevent text wrapping */
}

.role.active {
    opacity: 1;
    transform: translateY(0);
    z-index: 2;
}

.role.exit {
    opacity: 0;
    transform: translateY(-30px);
    z-index: 1;
}

.about-content p {
    font-family: 'Source Sans Pro', sans-serif;
    margin-bottom: 15px;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 400;
}

.about-content strong {
    color: var(--brand-orange);
    font-weight: 600;
}

/* Sound Indicator */
.sound-indicator {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    padding: 20px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 25;
    opacity: 0.95;
    transition: all 0.8s ease;
    will-change: opacity, transform;
    text-align: center;
    max-width: 400px;
}

.sound-primary {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sound-icon {
    font-size: 24px;
    opacity: 0.9;
}

.sound-headline {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.sound-secondary {
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0.7;
}

.warning-icon {
    font-size: 14px;
}

.sound-subtext {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.01em;
    line-height: 1.3;
}

.sound-indicator.hidden {
    opacity: 0;
    transform: translate(-50%, -60%);
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.8s ease, transform 0.8s ease, visibility 0s 0.8s;
}

/* Button Blur Effect */
.button-blur {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(215, 198, 176, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 15;
    transition: opacity 1s ease;
}

/* Start Button - Centered in viewport */
#start-button {
    font-family: 'Montserrat', sans-serif;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--brand-orange);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 20;
}

#start-button:hover {
    background-color: #e27e67;
    transform: translate(-50%, -50%) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

#start-button:active {
    transform: translate(-50%, -50%) scale(0.98);
}

/* Sound Control */
.sound-control {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    cursor: pointer;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.5s ease;
}


.sound-control .sound-off {
    display: none;
}

.sound-control.muted .sound-on {
    display: none;
}

.sound-control.muted .sound-off {
    display: block;
}

/* Scroll Links */
.scroll-link {
    text-decoration: none;
    cursor: pointer;
}

/* Desktop Scroll Indicator */
#mouse-scroll {
    position: absolute;
    margin: auto;
    right: 5%;
    bottom: 90px;
    -webkit-transform: scale(1.5);
    transform: scale(1.5);
    z-index: 100;
    cursor: pointer;
    transition: opacity 0.5s ease;
    opacity: 0;
}

#mouse-scroll span {
    display: block;
    width: 5px; 
    height: 5px;
    -ms-transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
    border-right: 2px solid #fff; 
    border-bottom: 2px solid #fff;
    margin: 0 0 3px 5px;
}

#mouse-scroll .mouse {
    height: 21px;
    width: 14px;
    border-radius: 10px;
    -webkit-transform: none;
    -ms-transform: none;
    transform: none;
    border: 2px solid #ffffff;
    display: block;
}

#mouse-scroll .down-arrow-1 {
    margin-top: 6px;
}

#mouse-scroll .down-arrow-1, #mouse-scroll .down-arrow-2, #mouse-scroll .down-arrow-3 {
    -webkit-animation: mouse-scroll 1s infinite; 
    -moz-animation: mouse-scroll 1s infinite;
}

#mouse-scroll .down-arrow-1 {
    -webkit-animation-delay: .1s; 
    -moz-animation-delay: .1s;
    -webkit-animation-direction: alternate;
}

#mouse-scroll .down-arrow-2 {
    -webkit-animation-delay: .2s; 
    -moz-animation-delay: .2s;
    -webkit-animation-direction: alternate;
}

#mouse-scroll .down-arrow-3 {
    -webkit-animation-delay: .3s;
    -moz-animation-delay: .3s;
    -webkit-animation-direction: alternate;
}

#mouse-scroll .mouse-in {
    height: 5px;
    width: 2px;
    display: block; 
    margin: 5px auto;
    background: #ffffff;
    position: relative;
}

#mouse-scroll .mouse-in {
    -webkit-animation: animated-mouse 1.2s ease infinite;
    moz-animation: mouse-animated 1.2s ease infinite;
}

/* Scroll overlay - hidden as requested */
.scroll-overlay {
    display: none;
}

@-webkit-keyframes animated-mouse {
    0% {
        opacity: 1;
        -webkit-transform: translateY(0);
        -ms-transform: translateY(0);
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        -webkit-transform: translateY(6px);
        -ms-transform: translateY(6px);
        transform: translateY(6px);
    }
}

@-webkit-keyframes mouse-scroll {
    0% {
        opacity: 1;
    }
    50% {
        opacity: .5;
    }
    100% {
        opacity: 1;
    } 
}

@keyframes mouse-scroll {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

/* Mobile Scroll Indicator */
.scroll-icon-container {
    position: absolute;
    right: 5%;
    bottom: 90px;
    transform: scale(1.5);
    z-index: 2000;
    cursor: pointer;
    transition: opacity 0.5s ease;
    background-color: rgba(239, 142, 124, 0.7);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 15px rgba(239, 142, 124, 0.5);
    opacity: 0;
}

.scroll-icon-container svg {
    filter: brightness(0) invert(1);
    width: 28px;
    height: 28px;
}

/* Content sections container */
#content-sections {
    position: relative;
    z-index: 10;
    margin-top: 1337px; /* Increased space below menu (desktop) */
}

/* Section styles */
.section {
    position: relative;
    padding: 100px 0;
    min-height: 100vh;
    z-index: 5;
}

/* First non-intro section needs to connect with the sun */
#about-section {
    padding-top: 0;
    margin-top: 50px; /* Add spacing after testimonials */
    position: relative;
    z-index: 10;
    background-color: transparent;
}

/* Category Menu Styles */
.category-menu-container {
    width: 100%;
    margin: 0;
    padding: 0;
    position: absolute;
    top: calc(100vh + 20px); /* Position categories so top border hits middle of the sun */
    left: 0;
    z-index: 20;
}

/* Featured Projects Section Styles */
.featured-projects-section {
    width: 100%;
    padding: 30px 20px; /* Add some padding */
    background-color: rgba(0, 0, 0, 0.05); /* Slightly darker background */
    border-radius: 20px 20px 0 0; /* Match top rounding of category menu */
    margin-bottom: 0; /* Ensure it connects seamlessly with the category row */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 21; /* Above category row but below header */
}

.featured-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem; /* Slightly smaller than category titles */
    font-weight: 700;
    color: white; /* Changed to white as requested */
    text-align: center;
    margin-bottom: 25px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.featured-projects-container {
    display: flex;
    justify-content: center;
    gap: 20px; /* Increased gap for better spacing */
    max-width: 1200px; /* Constrain max width */
    margin: 0 auto; /* Center the container */
}

.featured-project-card {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    flex: 1 1 220px; /* Adaptive sizing */
    max-width: 250px; /* Prevent excessive width */
}




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

.featured-project-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensure link fills the card */
}

.featured-project-thumbnail {
    width: 100%;
    aspect-ratio: 16 / 9; /* Maintain consistent proportions */
    overflow: hidden;
}

.featured-project-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the area, might crop */
    transition: transform 0.3s ease;
}

.featured-project-card:hover .featured-project-thumbnail img {
    transform: scale(1.05);
}

.featured-project-content {
    padding: 10px 12px; /* Adjusted padding */
    text-align: center;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}


.featured-project-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 8px 0;
}

.featured-project-description {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 0.85rem;
    color: #555;
    line-height: 1.4;
    margin-bottom: 12px;
    flex-grow: 1; /* Allows description to take available space */
    text-align: center;
}

.featured-project-button {
    display: inline-block;
    background-color: var(--brand-orange);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.8rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
    margin-top: auto; /* Pushes button to the bottom */
}

.featured-project-card:hover .featured-project-button {
    background-color: #e27e67; /* Darker orange on hover */
    transform: scale(1.03);
}


.category-row {
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 100%;
    /* Remove top border radius if featured section is present */
}

.featured-projects-section + .category-row .category-option:first-child {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}


.category-option {
    width: 100%;
    height: 300px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.5s ease;
    border-radius: 0;
}

/* .category-option:first-child {
    border-radius: 20px 20px 0 0;
} */ /* Adjusted by the rule above */

.category-option:last-child {
    border-radius: 0 0 20px 20px;
}

.category-option:hover {
    height: 350px;
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(226, 166, 121, 0.7),
        rgba(229, 109, 115, 0.4)
    );
    z-index: 1;
    transition: opacity 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.category-option:hover .category-overlay {
    opacity: 0.9;
}

.category-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    z-index: 2;
    padding: 20px;
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.category-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.category-option:hover .category-title {
    transform: scale(1.05);
}

.category-description {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1.1rem;
    margin: 0 0 25px 0;
    max-width: 80%;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.category-option:hover .category-description {
    opacity: 1;
    transform: translateY(0);
}

.category-button {
    font-family: 'Montserrat', sans-serif;
    display: inline-block;
    background-color: var(--brand-orange);
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.category-option:hover .category-button {
    opacity: 1;
    transform: translateY(0);
}

.category-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* Category Video Styling */
.category-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    filter: brightness(0.8);
    transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.category-option:hover .category-video {
    transform: scale(1.12);
    filter: brightness(0.9);
}

/* Category click state for transition */
.category-option.clicked .category-video {
    transform: scale(1.5);
    filter: brightness(1);
    animation: zoomVideo 0.8s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

.category-option.clicked .category-overlay {
    opacity: 0;
}

.category-option.clicked .category-content {
    opacity: 0;
    transform: translateY(-20px);
}

/* Video loading state */
.category-video.loading {
    opacity: 0;
}

.loading-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    display: none;
    z-index: 3;
}

.spinner {
    width: 100%;
    height: 100%;
    border: 3px solid rgba(239, 142, 124, 0.2);
    border-top-color: var(--brand-orange);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.category-video.loading + .loading-indicator {
    display: block;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes zoomVideo {
    0% { transform: scale(1.1); filter: brightness(0.8); }
    100% { transform: scale(1.5); filter: brightness(1); }
}

/* Page Transition Overlay */
.page-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-warm-white);
    opacity: 0;
    pointer-events: none;
    z-index: 9000;
    transition: opacity 0.5s ease;
}

.page-transition-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.transition-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle at center,
        var(--gradient-start) 0%,
        var(--gradient-end) 100%);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.page-transition-overlay.active .transition-content {
    transform: translate(-50%, -50%) scale(15);
}

/* Subtle texture for categories */
.category-option {
    position: relative;
}

/* Mobile styles for category menu */
@media (max-width: 768px) {
    #content-sections {
        margin-top: 2500px; /* Further increased space below menu (mobile) to prevent overlap */
    }
    
    .featured-title {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .featured-projects-container {
        flex-wrap: wrap; /* Allow wrapping on mobile */
        flex-direction: row; /* Keep row direction but allow wrap */
        justify-content: center; /* Center cards when wrapped */
    }

    .featured-project-card {
        width: 100%; /* Full width for stacked cards */
        max-width: 400px; /* Reasonable max width on mobile */
        flex: 1 1 100%; /* Full width basis on mobile */
    }

    .featured-project-thumbnail {
        aspect-ratio: 16 / 10; /* Slightly taller aspect ratio on mobile */
    }

    .featured-project-title {
        font-size: 1rem;
    }

.featured-project-description {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 0.85rem;
    color: #555;
    line-height: 1.4;
    margin-bottom: 12px;
    flex-grow: 1; /* Allows description to take available space */
    text-align: center;
}

    .category-row {
        flex-direction: column;
        height: auto;
    }
    
    .category-option {
        height: 250px;
        flex: none;
    }
    
    .category-option:hover {
        flex: none; /* Keep height consistent on mobile hover */
    }
    
    .category-title {
        font-size: 1.8rem;
    }
    
    .category-description {
        font-size: 1rem;
        opacity: 1; /* Ensure description is visible on mobile */
        transform: none; /* Reset transform */
        max-width: 90%;
    }
    
    .category-button {
        opacity: 1; /* Ensure button is visible on mobile */
        transform: none; /* Reset transform */
    }
}

/* Testimonials Section Styles */
#testimonials-section {
    position: relative;
    padding: 100px 0 10px; /* Further reduced bottom padding */
    margin-top: 0; /* Reset margin since parent has margin */
    background-color: var(--bg-warm-white);
    overflow: hidden;
    z-index: 5;
    /* Removed separator line */
}

.testimonials-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    margin: 15px auto 0;
    border-radius: 2px;
}

/* Testimonial Carousel */
.testimonial-carousel {
    position: relative;
    height: 480px; /* Taller for better content display */
    perspective: 1500px; /* Increased for more dramatic 3D effect */
    margin: 0 auto;
    overflow: visible;
    transform-style: preserve-3d; /* Preserve 3D for children */
}

.testimonial-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    opacity: 0;
    transform: translateX(180px) translateZ(-200px) scale(0.7); /* Pushed further to sides */
    transition: transform 0.9s cubic-bezier(0.19, 1, 0.22, 1), 
                opacity 0.9s cubic-bezier(0.19, 1, 0.22, 1);
    pointer-events: none;
    will-change: transform, opacity;
    transform-style: preserve-3d; /* Maintain 3D for inner content */
    z-index: 1; /* Ensure basic stacking context */
}

/* Initial state classes for testimonial cards */
.testimonial-card.active {
    opacity: 1 !important; /* Ensure full opacity with !important */
    transform: translateX(0) translateZ(0) scale(1);
    pointer-events: auto;
    z-index: 5;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12); /* Enhanced shadow for depth */
    filter: none; /* Remove any blur filter */
}

.testimonial-card.prev {
    opacity: 0.3; /* More transparent */
    transform: translateX(-350px) translateZ(-300px) scale(0.65); /* Pushed much further away */
    z-index: 3;
    filter: blur(2px); /* More blur for depth perception */
}

.testimonial-card.next {
    opacity: 0.3; /* More transparent */
    transform: translateX(350px) translateZ(-300px) scale(0.65); /* Pushed much further away */
    z-index: 3;
    filter: blur(2px); /* More blur for depth perception */
}

.testimonial-content {
    height: 100%;
    box-sizing: border-box;
    padding: 40px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.7); /* Slightly more opaque */
    backdrop-filter: blur(20px); /* Increased blur for more glass effect */
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.08), 
        inset 0 0 0 1px rgba(255, 255, 255, 0.9); /* Inner highlight */
    border: 1px solid rgba(255, 255, 255, 0.8); /* More visible border */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    position: relative;
    transform-style: preserve-3d; /* Maintain 3D for inner content */
}

/* Glass edge highlight effect */
.testimonial-content::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.3) 0%,
        rgba(255, 255, 255, 0) 15%,
        rgba(255, 255, 255, 0) 85%,
        rgba(255, 255, 255, 0.15) 100%
    );
    pointer-events: none;
}

.testimonial-text {
    flex-grow: 1;
    position: relative;
    overflow: auto;
    padding: 20px 10px;
    margin-bottom: 30px;
    transform: translateZ(10px); /* Subtle 3D lift */
}

.testimonial-text p {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-dark);
    position: relative;
    quotes: """ """;
    letter-spacing: 0.01em; /* Subtle letter spacing for readability */
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5); /* Text shadow for readability */
}

.testimonial-text p::before {
    content: open-quote;
    position: absolute;
    top: -40px;
    left: -15px;
    font-family: 'Montserrat', sans-serif;
    font-size: 100px; /* Larger quote mark */
    line-height: 1;
    background: linear-gradient(to bottom, 
                 var(--gradient-start),
                 var(--gradient-end)); /* Gradient quote */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.2;
    transform: translateZ(15px); /* 3D effect */
}

.testimonial-attribution {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 0 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 22px;
    margin-top: 10px;
    transform: translateZ(15px); /* 3D effect */
}

.profile-image {
    width: 70px; /* Larger image */
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    background-color: rgba(229, 109, 115, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: all 0.5s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateZ(5px); /* Subtle 3D effect */
}

.profile-image img.profile-pic {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.5s ease;
}

.testimonial-card.active .profile-image img.profile-pic {
    transform: scale(1.05);
}

.testimonial-card.active .profile-image {
    box-shadow: 0 0 20px rgba(229, 109, 115, 0.4);
    transform: translateZ(20px) scale(1.05); /* Enhance 3D effect on active */
}

/* Removed profile placeholder styles as we now use actual profile images */

.attribution-details {
    flex-grow: 1;
    transform: translateZ(5px); /* Subtle 3D effect */
}

.name {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
    /* Subtle gradient text */
    background: linear-gradient(to right, 
                var(--text-dark),
                rgba(51, 51, 51, 0.8));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.title {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 4px;
    line-height: 1.3;
}

.relationship {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 0.9rem;
    color: var(--brand-orange);
    font-weight: 600;
    /* Subtle gradient text */
    background: linear-gradient(to right, 
                var(--brand-orange),
                var(--gradient-start));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Navigation Controls */
.testimonial-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 50px;
    position: relative;
    z-index: 3;
}

.nav-arrow {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.08),
        inset 0 1px 2px rgba(255, 255, 255, 0.9);
    color: var(--text-dark);
    transform: translateZ(0);
}

.nav-arrow:hover {
    background: linear-gradient(135deg, var(--brand-orange), var(--gradient-start));
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(239, 142, 124, 0.4);
}

.nav-arrow:active {
    transform: translateY(0);
}

.nav-dots {
    display: flex;
    gap: 12px;
    margin: 0 25px;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.nav-dot::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.nav-dot.active {
    transform: scale(1.4);
}

.nav-dot.active::after {
    opacity: 1;
}

.nav-dot:hover::after {
    opacity: 0.7;
}


/* Audio Elements */
.testimonial-audio {
    display: none;
}

/* Mobile Styles for Testimonials */
@media (max-width: 768px) {
    .testimonial-carousel {
        height: 550px; /* Taller for mobile */
    }
    
    .testimonial-content {
        padding: 20px;
    }
    
    .testimonial-text p {
        font-size: 1rem;
    }
    
    .testimonial-text p::before {
        font-size: 60px;
        top: -20px;
    }
    
    .testimonial-attribution {
        flex-direction: column;
        align-items: flex-start;
        text-align: center;
        gap: 10px;
    }
    
    .profile-image {
        margin: 0 auto;
    }
    
    .attribution-details {
        text-align: center;
        width: 100%;
    }
    
    .nav-arrow {
        width: 36px;
        height: 36px;
    }
    
    .nav-dots {
        gap: 8px;
    }
    
    .nav-dot {
        width: 8px;
        height: 8px;
    }
}

/* Statistics Section Styles */
#statistics-section {
    background-color: var(--bg-warm-white);
    padding: 20px 0; /* Reduced top padding, bottom padding will be set by later rule */
    position: relative;
}

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

/* Tier 1: Featured Visualizations */
.tier-1-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.stat-feature-card {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 22px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
    padding: 32px;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    position: relative;
    overflow: visible; /* Changed from hidden to visible */
    display: flex;
    flex-direction: column;
    transform: translateY(30px);
    opacity: 0;
    animation: feature-card-enter 0.8s cubic-bezier(0.19, 1, 0.22, 1) forwards;
    animation-play-state: paused;
}

.tier-1-stats.animate .stat-feature-card {
    animation-play-state: running;
}

.stat-feature-card:nth-child(2) {
    animation-delay: 0.15s;
}

.stat-feature-card:nth-child(3) {
    animation-delay: 0.3s;
}

.stat-feature-card:nth-child(4) {
    animation-delay: 0.45s;
}

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

@keyframes feature-card-enter {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 24px;
    text-align: center;
    position: relative;
}

.stat-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    margin: 12px auto 0;
    border-radius: 2px;
}

.viz-container {
    height: 260px;
    width: 100%;
    position: relative;
    margin: 15px 0 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.stat-description {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-dark);
    margin-top: auto;
    text-align: center;
}

.stat-footnote {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 0.8rem;
    color: #888;
    font-style: italic;
    margin-top: 10px;
    text-align: center;
}

.stat-footnote a {
    color: var(--brand-orange);
    text-decoration: none;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

.stat-footnote a:hover {
    text-decoration: underline;
    color: var(--gradient-start);
}

/* UX Improvement Visualization */
.ux-improvement-viz {
    position: relative;
}

#uxBarContainer {
    position: relative;
}

/* UX Improvement Visualization - Horizontal Bar */
.horizontal-bar-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    position: relative;
    padding: 0;
    box-sizing: border-box;
}

.horizontal-chart {
    width: 100%;
    margin-top: 20px;
    position: relative;
    padding: 0 5px;
}

.percentage-display {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.8rem;
    font-weight: 800;
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    margin-bottom: 25px;
    text-align: center;
    text-shadow: 0 2px 10px rgba(239, 142, 124, 0.2);
    position: relative;
    transform: translateY(0);
    opacity: 1;
    transition: all 0.5s ease-out;
    line-height: 1;
}

.chart-labels {
    margin-bottom: 68px;
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.chart-main-label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-dark);
    text-align: left;
    margin-bottom: 8px;
    width: 100%;
    white-space: normal; /* Allow label to wrap */
    overflow: visible;
}

.chart-bars {
    position: relative;
    height: 45px;
    width: 100%;
    margin-bottom: 30px;
}

.chart-bg-bar {
    position: absolute;
    height: 100%;
    width: 100%;
    background-color: #f0f0f0;
    border-radius: 22.5px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.chart-progress-bar {
    position: absolute;
    height: 100%;
    width: 0%;
    border-radius: 22.5px;
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    box-shadow: 0 3px 12px rgba(239, 142, 124, 0.3);
    transition: width 1.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.chart-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 0.15) 0%, 
        rgba(255, 255, 255, 0) 100%);
}

.benchmark-marker {
    position: absolute;
    top: -10px;
    bottom: -10px;
    width: 2px;
    z-index: 5;
}

.marker-line {
    position: absolute;
    width: 2px;
    height: calc(100% + 10px);
    background-color: rgba(0, 0, 0, 0.4);
    top: -5px;
}

.marker-line::before,
.marker-line::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.6);
    left: -3px;
}

.marker-line::before {
    top: -8px;
}

.marker-line::after {
    bottom: -8px;
}

.marker-label {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 0.85rem;
    color: #555;
    text-align: center;
    white-space: normal;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 6px 8px;
    border-radius: 6px;
    width: 85px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(10px) translateX(-50%);
    transition: opacity 0.5s ease, transform 0.5s ease;
    z-index: 10;
}

.chart-scale {
    display: flex;
    justify-content: space-between;
    width: 100%;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 0.9rem;
    color: #777;
    margin-top: 8px;
    padding: 0;
}

/* Animation classes */
.animate-marker .marker-label {
    opacity: 1;
    transform: translateY(0);
}

/* Distinct background colors for benchmark markers */
.benchmark-marker:nth-child(2) .marker-label {
    background-color: rgba(255, 245, 240, 0.95);
    border-left: 2px solid var(--gradient-start);
}

.benchmark-marker:nth-child(3) .marker-label {
    background-color: rgba(248, 255, 240, 0.95);
    border-left: 2px solid #6a9955;
}

.animate-marker:nth-child(1) .marker-label {
    transition-delay: 0.5s;
}

.animate-marker:nth-child(2) .marker-label {
    transition-delay: 0.7s;
}

/* Team Efficiency Visualization - HTML/CSS implementation for consistency */
.efficiency-viz {
    position: relative;
}

.efficiency-viz .viz-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 260px;
    padding: 20px 0;
}

/* Multiplier display styling */
.multiplier-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 20px;
}

.multiplier-display {
    font-family: 'Montserrat', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    background: linear-gradient(45deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    line-height: 1.2;
    transition: all 0.5s ease;
    text-shadow: 0 2px 10px rgba(239, 142, 124, 0.2);
}

.growth-percentage {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--gradient-start);
    opacity: 0;
    margin-top: 5px;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Before/After comparison section */
.efficiency-comparison {
    display: flex;
    width: 100%;
    justify-content: space-around;
    margin-top: 25px;
    position: relative;
}

/* Line connecting the two states */
.efficiency-comparison::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 25%;
    right: 25%;
    height: 2px;
    background: linear-gradient(to right, #aaa, var(--gradient-start));
    transform: translateY(-50%) scaleX(0);
    transform-origin: left;
    transition: transform 1s ease;
}

/* State styling (before/after) */
.efficiency-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 40%;
    position: relative;
}

.state-label {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 10px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.state-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid #ddd;
    margin: 10px 0;
    position: relative;
    background: rgba(255, 255, 255, 0.5);
    transform: scale(0);
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), 
                border-color 0.5s ease, 
                background-color 0.5s ease;
}

.efficiency-state.before .state-circle {
    border-color: #aaa;
}

.efficiency-state.after .state-circle {
    border-color: var(--gradient-start);
    transition-delay: 0.3s;
}

.state-value {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    margin-top: 5px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.efficiency-state.before .state-value {
    color: #777;
}

.efficiency-state.after .state-value {
    color: var(--gradient-start);
}

/* Animation classes - will be added via JavaScript */
.efficiency-comparison.animated::before {
    transform: translateY(-50%) scaleX(1);
}

.efficiency-comparison.animated .state-label,
.efficiency-comparison.animated .state-value {
    opacity: 1;
    transform: translateY(0);
}

.efficiency-comparison.animated .state-circle {
    transform: scale(1);
}

.efficiency-state.after .state-circle.animated {
    transform: scale(3.1);
}

/* Production Time Reduction - Enhanced with Time Elements */
.time-reduction-viz {
    position: relative;
}

.time-reduction-viz .viz-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 260px;
    padding: 0;
}

/* Percentage display - bold gradient text */
.time-saved-value {
    font-family: 'Montserrat', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    background: linear-gradient(45deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    margin-bottom: 5px;
    text-align: center;
    line-height: 1;
}

.time-saved-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #777;
    margin-bottom: 30px;
    text-align: center;
}

/* Timeline comparison */
.timeline-comparison {
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    padding: 0 20px;
}

.timeline-row {
    display: flex;
    align-items: center;
    width: 100%;
}

/* Enhanced label with clock icon */
.timeline-label {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #777;
    width: 80px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.clock-icon {
    font-size: 1.1rem;
    margin-right: 3px;
    opacity: 0.85;
}

/* Enhanced timeline bar with markers */
.timeline-bar {
    flex-grow: 1;
    height: 20px;
    background-color: #f0f0f0;
    border-radius: 10px;
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: visible; /* Changed to visible for markers */
    margin: 0 15px;
}

/* Timeline tick markers for time visualization */
.timeline-markers {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.marker {
    position: absolute;
    width: 2px;
    height: 10px;
    background-color: rgba(0, 0, 0, 0.15);
    top: 100%;
    transform: translateX(-50%);
}

.marker span {
    position: absolute;
    top: 13px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    color: #999;
    white-space: nowrap;
}

.timeline-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    transition: width 1s ease-out;
}

/* Progress indicator - symbolizes moving through timeline */
.timeline-progress-indicator {
    position: absolute;
    right: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background-color: #fff;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.7);
    opacity: 0;
    border-radius: 2px;
    transition: opacity 0.3s ease;
}

.timeline-bar.before .timeline-fill {
    background-color: #aaa;
    width: 100%;
    border-radius: 10px; /* Ensure rounded tips on both ends */
}

.timeline-bar.after .timeline-fill {
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    width: 20%;
    border-radius: 10px; /* Ensure rounded tips on both ends */
}

/* Enhanced value display with time units */
.timeline-value {
    font-family: 'Montserrat', sans-serif;
    min-width: 80px;
    text-align: right;
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.time-unit {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--brand-orange);
}

.percentage {
    font-weight: 500;
    font-size: 0.85rem;
    color: #777;
    margin-top: 2px;
}

/* Digital Engagement Growth - Arbofarma-style Donut Chart */
/* Container for the entire visualization */
#engagementNetworkContainer {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 260px;
    position: relative;
}

/* Main donut chart container */
.arbo-donut-chart {
    position: relative;
    width: 220px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ring container */
.donut-ring-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* SVG donut ring */
.donut-ring {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg); /* Start from top */
    overflow: visible;
    filter: drop-shadow(0px 0px 10px rgba(239, 142, 124, 0.3));
}

/* Background circle */
.donut-background {
    fill: none;
    stroke: rgba(240, 240, 240, 0.5);
    stroke-width: 8;
}

/* Progress segment */
.donut-segment {
    fill: none;
    stroke-width: 8;
    stroke: url(#donutGradient);
    stroke-linecap: round;
    stroke-dasharray: 0 251.2; /* 0 of 251.2 (2*PI*40) */
    stroke-dashoffset: 0;
    transition: stroke-dasharray 1.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Central content */
.donut-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 80%;
}

/* Value display */
.donut-value {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    margin-bottom: 5px;
    line-height: 1;
}

/* Label display */
.donut-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #777;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Decorative elements */
.donut-decorations {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Decoration dots with device icons */
.decoration-dot {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    opacity: 0;
    transform: scale(0);
    box-shadow: 0 0 15px rgba(239, 142, 124, 0.3);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), 
                opacity 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* Device icon styling */
.device-icon {
    font-size: 1.5rem;
    line-height: 1;
    position: relative;
    z-index: 2;
}

/* Position dots around the chart */
.dot-1 {
    top: 5%;
    right: 15%;
}

.dot-2 {
    bottom: 20%;
    right: 5%;
}

.dot-3 {
    bottom: 15%;
    left: 5%;
}

.dot-4 {
    top: 30%;
    left: 5%;
}

/* Pulse animation for dots */
@keyframes dot-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 142, 124, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(239, 142, 124, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(239, 142, 124, 0);
    }
}

/* Animation class for dots */
.decoration-dot.animated {
    animation: dot-pulse 2s infinite;
}

/* Shine effect for the donut */
@keyframes donut-shine {
    0% {
        stroke-dashoffset: 100;
        opacity: 0;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        stroke-dashoffset: -100;
        opacity: 0;
    }
}

/* Shine effect element - will be added via JS */
.donut-shine {
    fill: none;
    stroke: rgba(255, 255, 255, 0.7);
    stroke-width: 8;
    stroke-dasharray: 50 201.2; /* 20% of the circumference */
    opacity: 0;
    stroke-linecap: round;
}

/* Animation class for shine */
.donut-shine.animated {
    animation: donut-shine 3s ease-in-out infinite;
}

/* Fix for Mini Numbers */
.mini-number {
    display: inline-flex;
    align-items: baseline;
}

/* Tier 2: Standalone Numbers */
.tier-2-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.stat-standalone-card {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.stat-standalone-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
}

.number-display {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--brand-orange);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.number-display::after {
    content: "+";
    font-size: 2rem;
    position: absolute;
    top: 0;
    right: -20px;
}

.stat-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-dark);
}

/* Tier 3: Supporting Statistics */
.tier-3-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.stats-category {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stats-category:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
}

.category-header {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.stat-mini-card {
    text-align: center;
    padding: 15px 10px;
    border-radius: 10px;
    background-color: rgba(0, 0, 0, 0.02);
    transition: background-color 0.3s ease;
    position: relative;
}

.stat-mini-card:hover {
    background-color: rgba(239, 142, 124, 0.05);
}

.mini-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--brand-orange);
    margin-bottom: 5px;
    position: relative;
    display: inline-block;
}

.percentage {
    font-size: 1.2rem;
    vertical-align: super;
}

.mini-label {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 0.85rem;
    color: var(--text-dark);
    line-height: 1.3;
}

/* Add scroll-padding to account for fixed header */
html {
    height: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Exact match to header height (70px) plus small buffer */
}


/* Statistics & Contact Section Spacing */
#statistics-section {
    padding-bottom: 80px; /* Add proper padding at bottom of stats */
    position: relative;
}

/* Contact Section Styles */
.contact-section {
    background-color: var(--bg-warm-white);
    position: relative;
    padding: 100px 0 80px; /* Increased padding for better anchoring */
    position: relative;
    margin-top: 0;
    /* Subtle background gradient without any border or line */
    background: linear-gradient(
        to bottom,
        var(--bg-warm-white),
        rgba(229, 120, 115, 0.08),
        var(--bg-warm-white)
    );
}

/* Mobile optimizations for contact section */
@media (max-width: 768px) {
    .contact-section {
        padding: 80px 0 60px; /* Reduced padding for mobile */
    }
}



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

.contact-card {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 22px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@media (max-width: 768px) {
    .contact-card {
        padding: 25px; /* Reduced padding for mobile */
    }
}

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

.contact-message {
    margin-bottom: 40px;
    text-align: center;
}

.contact-message p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.5;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

/* Email container */
.email-container {
    background-color: white;
    border-radius: 50px;
    padding: 8px 8px 8px 30px;
    margin: 30px auto 40px;
    display: flex;
    align-items: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    max-width: 700px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.email-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-right: 15px;
    white-space: nowrap;
}

.email-value {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-dark);
    flex-grow: 1;
    padding: 0 15px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Mobile optimizations for email container */
@media (max-width: 768px) {
    .email-container {
        flex-direction: column;
        padding: 20px;
        border-radius: 20px;
        margin: 20px auto 30px;
    }
    
    .email-label {
        margin-right: 0;
        margin-bottom: 10px;
        font-size: 1.1rem;
        width: 100%;
        text-align: center;
    }
    
    .email-value {
        width: 100%;
        text-align: center;
        margin-bottom: 15px;
        padding: 0;
    }
    
    .copy-email-btn {
        width: 100%;
        padding: 15px 20px;
        font-size: 1.1rem;
        border-radius: 15px;
        margin-top: 5px;
    }
}

.email-link {
    color: var(--text-dark);
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

.email-link:hover {
    color: var(--brand-orange);
}

.email-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.email-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.copy-email-btn {
    position: relative;
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 25px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(239, 142, 124, 0.3);
    white-space: nowrap;
    overflow: hidden;
}

.copy-email-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, 
                rgba(255, 255, 255, 0.1), 
                rgba(255, 255, 255, 0.2));
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.copy-email-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 142, 124, 0.4);
}

.copy-email-btn:hover::before {
    transform: translateX(100%);
}

.copy-email-btn:active {
    transform: translateY(1px);
}

.copy-email-btn.copied {
    background: linear-gradient(to right, #4CAF50, #45a049);
}

/* Social media section */
.social-container {
    margin-top: 40px;
    text-align: center;
}

.social-heading {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 20px;
}

/* Mobile optimizations for social section */
@media (max-width: 768px) {
    .social-container {
        margin-top: 30px;
    }
    
    .social-heading {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    
    .social-icons {
        gap: 20px;
        margin-top: 15px;
    }
    
    .social-icon {
        width: 50px;
        height: 50px;
    }
    
    .social-icon svg {
        width: 22px;
        height: 22px;
    }
}

.social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, 
                rgba(255, 255, 255, 0.1), 
                rgba(255, 255, 255, 0.2));
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    z-index: 1;
}

.social-icon svg {
    width: 24px;
    height: 24px;
    fill: white;
    position: relative;
    z-index: 2;
}

.social-icon:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.social-icon:hover::before {
    transform: translateX(100%);
}

.social-icon:active {
    transform: translateY(2px);
}

/* Platform-specific styling */
.social-icon.youtube {
    background: linear-gradient(135deg, var(--gradient-start), var(--brand-orange));
}

.social-icon.linkedin {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
}

.social-icon.instagram {
    background: linear-gradient(45deg, var(--gradient-start), var(--gradient-end));
}

/* Copy confirmation tooltip */
.copy-confirmation {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.copy-confirmation.show {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

/* Media Queries */
/* Ensure all animations are at rest until triggered */
.stat-standalone-card, .stat-mini-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.stat-standalone-card.animated, .stat-mini-card.animated {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .tier-1-stats {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .tier-2-stats {
        grid-template-columns: 1fr;
    }
    
    .tier-3-stats {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .stat-feature-card,
    .stat-standalone-card,
    .stats-category {
        padding: 20px;
    }
    
    .viz-container {
        height: 200px;
    }
    
    .percentage-display,
    .multiplier-display {
        font-size: 2.2rem;
    }
    /* Specific adjustment for UX improvement viz if needed */
    .ux-improvement-viz .percentage-display {
        font-size: 2.0rem; /* Further reduce if 2.2rem is still too large */
        margin-bottom: 15px; /* Adjust spacing below percentage */
    }
    .ux-improvement-viz .marker-label {
        font-size: 0.7rem; /* Smaller font for marker labels */
        top: -50px; /* Adjust vertical position */
        padding: 4px 6px;
    }
    .ux-improvement-viz .chart-labels {
        margin-bottom: 55px; /* Adjust space below labels, above bar */
    }
    
    .number-display {
        font-size: 3rem;
    }
}

/* Media Queries for Existing Elements */
@media (max-width: 768px) {
    .header-inner {
        padding: 0 20px;
    }
    
    .logo-container {
        width: 200px;
    }
    
    .header-logo {
        height: 70px;
    }
    
    .main-nav, .contact-button {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu {
        display: block;
    }
    
    #mouse-scroll {
        display: none;
    }
    
    .scroll-icon-container {
        display: flex;
    }
    
    .about-card {
        width: 90%;
        padding: 20px;
    }
    
    .about-header h2 {
        font-size: 1.4rem; /* Further reduce size */
    }
    
    .role {
        font-size: 1.1rem; /* Further reduce size */
        /* height: 25px; /* Allow height to be auto for wrapped text */
        line-height: 1.2; /* Adjust for potentially wrapped text */
        white-space: normal; /* Allow role text to wrap */
        height: auto; /* Allow height to adjust */
        position: relative; /* Ensure proper flow if wrapped, remove if not needed */
        /* transform: translateY(0); /* Reset if it was for single line animation */
        /* opacity: 0; /* Reset opacity if it was part of entry animation */
    }
    /* Ensure active/exit states for role also consider auto height if needed */
    .role.active {
        /* transform: translateY(0); */
        /* opacity: 1; */
    }
    .role.exit {
        /* opacity: 0; */
        /* transform: translateY(0); */ /* Or appropriate exit for wrapped text */
    }
    
    .role-container {
        height: auto; /* Allow height to adjust for wrapped role text */
        min-height: 25px; /* Maintain a minimum height */
        min-width: 0; /* Allow shrinking */
        width: auto; /* Adjust based on content or flex rules */
        max-width: 100%; /* Prevent overflow if parent is constrained */
    }
    
    .about-content p {
        font-size: 0.9rem; /* Further reduce size */
        margin-bottom: 10px; /* Reduce margin slightly */
    }
    
    #start-button {
        padding: 12px 25px;
        font-size: 1.1rem;
    }

    .contact-message p {
        font-size: 1.2rem; /* Reduce font size for contact message on mobile */
    }
}

/* Loading Bar Styles */
.loading-bar {
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
}

.loading-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.6));
    border-radius: 2px;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Ensure button can contain the loading bar */
#start-button {
    overflow: hidden; /* Hidden to contain the loading bar */
}

/* Loading bar container */
#start-button .loading-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
    bottom: 0;
    left: 0;
    height: 4px;
    width: 100%;
    background: rgba(255, 255, 255, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Loading bar progress */
#start-button .loading-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background-color: #ffffff;
    border-radius: 2px;
    transition: width 0.3s ease;
    bottom: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.6));
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Show loading bar when button is in loading state */
#start-button.loading .loading-bar {
    opacity: 1;
}

/* Statistics Indicator Styles */
.stat-indicator {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-indicator:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    animation: wave-effect 1.5s infinite;
}

@keyframes wave-effect {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 142, 124, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(239, 142, 124, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(239, 142, 124, 0);
    }
}

.stat-preview-card {
    position: absolute;
    top: 40px; /* Position below the indicator */
    right: 10px;
    width: 280px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 2001; /* Increased z-index to appear above header */
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    overflow: hidden;
    border: 1px solid #eee;
}

.stat-preview-card.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.stat-preview-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.stat-preview-content {
    padding: 15px;
}

.stat-preview-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 8px 0;
}

.stat-preview-description {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 0.85rem;
    color: #555;
    line-height: 1.4;
    margin: 0;
}
