html {
    scroll-behavior: smooth;
    /* Enable smooth scrolling */
    scroll-padding-top: 70px;
    /* Offset anchor links for sticky header */
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #333;
}

.header {
    position: sticky;
    /* Make header sticky */
    top: 0;
    /* Stick to the top */
    z-index: 1000;
    /* Stay above other content */
    width: 100%;
    /* Ensure full width when sticky */
    box-sizing: border-box;
    /* Include padding in width calculation */
    display: flex;
    /* Use flexbox */
    justify-content: space-between;
    /* Space elements */
    align-items: center;
    /* Vertically align items */
    padding: 10px 20px;
    /* Padding */
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 1) 15%, rgba(10, 61, 143, 0.7) 20%, rgba(10, 61, 143, 1) 25%, rgba(10, 61, 143, 1) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    height: 70px;
    /* Fixed height for consistency */
}

.header .logo-container {
    display: flex;
    /* Keep flex for internal alignment */
    flex-direction: column;
    /* Stack prefix and logo vertically */
    align-items: flex-start;
    /* Align items to the left */
    position: relative;
    /* Allow absolute positioning for tail */
}

.header .logo-prefix {
    display: block;
    /* Ensure it's on its own line */
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8em;
    /* Smaller size when above */
    font-weight: 600;
    color: #5a6a7d;
    margin-bottom: 2px;
    /* Small space below prefix */
    line-height: 1;
}

.header .logo-container img[src*="Logo.png"] {
    display: block;
    /* Ensure it takes its own space */
    height: 25px;
    /* Slightly smaller logo */
    mix-blend-mode: multiply;
    /* Attempt to blend out white background */
    filter: contrast(1.2) brightness(1.1);
    /* Enhance contrast */
}

.logo-link {
    text-decoration: none;
    /* Remove underline from logo link */
}

.logo-tail {
    position: absolute;
    height: 15px;
    /* Make smaller */
    right: -13px;
    /* Closer to the logo */
    bottom: -5px;
    /* Curve downward */
    opacity: 0.9;
    transition: transform 0.3s ease;
    z-index: 1;
}

.logo-link:hover .logo-tail {
    transform: rotate(10deg);
    /* Subtle animation on hover */
}

/* Main Navigation */
.main-nav ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 25px;
    /* Space between nav items */
}

.main-nav a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95em;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.main-nav a:hover {
    color: #fff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

/* Active navigation link styling */
.main-nav a.active {
    color: #fff !important;
    text-decoration: underline;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

.header-button {
    display: inline-block;
    background-color: #0a3d8f;
    /* Match logo blue */
    color: #fff;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.95em;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.header-button:hover {
    background-color: #1054b1;
    /* Slightly lighter blue on hover */
}

.content {
    flex: 1;
    padding-top: 60px;
    /* Add padding to prevent overlap from sticky header */
    width: 100%;
    /* Take full width */
    margin: 0;
}

.hero-section {
    display: flex;
    gap: 40px;
    /* Space between left text and right table */
    align-items: flex-start;
    /* Align items to the top */
    padding: 60px 40px;
    /* Increased padding */
    max-width: 1100px;
    margin: 0 auto;
    width: 90%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-left {
    flex: 1;
    /* Takes up available space */
}

.hero-left h2 {
    font-size: 2.4em;
    font-weight: 700;
    color: #0a3d8f;
    margin-top: 0;
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-left p {
    font-size: 1.05em;
    color: #5a6a7d !important;
    margin-bottom: 24px;
    line-height: 1.6;
}

/* Ensure all text within hero-left paragraphs uses the same color */
.hero-left p,
.hero-left p * {
    color: #5a6a7d !important;
}

/* Exception for links within paragraphs */
.hero-left p a {
    color: #557a95 !important;
}

.hero-left p:last-child {
    margin-bottom: 0;
}

.hero-left p a {
    color: #557a95;
    /* Softer blue link color */
    text-decoration: none;
    /* Remove underline by default */
    font-weight: 600;
}

.hero-left p a:hover {
    text-decoration: underline;
    /* Underline on hover */
}

.hero-buttons a {
    display: inline-block;
    padding: 18px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: 600;
    margin-right: 15px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 1;
    /* Ensure button is above the ears */
    overflow: hidden;
    transform: translateY(0);
}

.hero-buttons .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.hero-buttons .btn-primary:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

.hero-buttons .btn-secondary {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: #fff;
    box-shadow: 0 8px 25px rgba(79, 172, 254, 0.3);
    border: none;
}

.hero-buttons .btn-secondary:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(79, 172, 254, 0.4);
}

/* Document Page Button Styles */
.document-btn {
    display: block;
    padding: 20px 40px;
    font-size: 1.3em;
    text-decoration: none;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateY(0);
    position: relative;
    z-index: 1;
    /* Ensure button is above ears */
}

.document-btn:hover {
    transform: translateY(-5px) scale(1.02);
}

/* Pitch Deck Button on document page */
.document-btn.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.document-btn.btn-primary:hover {
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

/* ROI Button 1 */
.document-btn.roi-btn-1 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 8px 25px rgba(240, 147, 251, 0.3);
}

.document-btn.roi-btn-1:hover {
    box-shadow: 0 15px 35px rgba(240, 147, 251, 0.4);
}

/* ROI Button 2 */
.document-btn.roi-btn-2 {
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    box-shadow: 0 8px 25px rgba(246, 211, 101, 0.3);
}

.document-btn.roi-btn-2:hover {
    box-shadow: 0 15px 35px rgba(246, 211, 101, 0.4);
}

.hero-right {
    flex: 0 0 45%;
    /* Fixed width for the preview table container */
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    overflow: hidden;
}

#leaderboard-preview-table th.preview-increase-col,
#leaderboard-preview-table td.preview-increase-col {
    text-align: right;
    font-weight: 600;
    width: 20%;
}

#leaderboard-preview-table .initials-circle {
    font-size: 0.8em;
    margin-right: 8px;
}

#leaderboard-preview-table td.preview-name-col {
    display: flex;
    align-items: center;
}

.full-leaderboard-section {
    max-width: 1100px;
    margin: 40px auto;
    /* Add margin */
    width: 90%;
}

.full-leaderboard-section h2 {
    font-size: 1.8em;
    font-weight: 600;
    color: #0a3d8f;
    margin-bottom: 20px;
    text-align: center;
}

.studies-graph-section h2 {
    text-align: center;
    color: #0a3d8f;
    font-size: 1.8em;
    font-weight: 600;
    margin-bottom: 20px;
}

.studies-graph-section p,
.studies-graph-section>p {
    margin-bottom: 0 !important;
}

.data-container {
    /* Styling for the container of the *full* table */
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    /* Softer shadow */
    border-radius: 10px;
    /* Slightly more rounded */
    overflow: hidden;
    /* Ensure content respects border radius */
}

.data-header {
    background: linear-gradient(to right, #0a3d8f, #1054b1);
    /* Blue gradient header */
    color: #fff;
    padding: 12px 20px;
    font-size: 1.3em;
    font-weight: 600;
    /* Removed border-radius here, applied to parent */
}

#leaderboard-container {
    /* Keep this ID for JS refs, style the inner part */
    padding: 20px;
    /* Remove border styles, rely on parent's shadow/border */
    min-height: 100px;
    position: relative;
}

#loading-indicator,
#error-message {
    text-align: center;
    padding: 30px 20px;
    color: #6c757d;
    font-style: italic;
    /* Removed absolute positioning, let it flow normally */
}

#instruction-text {
    font-size: 0.85em;
    color: #6c757d;
    margin-bottom: 15px;
    text-align: center;
}

.mobile-table-instruction {
    display: none;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0;
}

th,
td {
    border: none;
    /* Remove cell borders */
    border-bottom: 1px solid #eee;
    /* Use bottom borders for separation */
    padding: 15px 10px;
    /* Adjusted padding for more vertical space */
    text-align: left;
    vertical-align: middle;
}

th {
    background-color: #f8f9fa;
    /* Lighter header background */
    font-weight: 500;
    /* Match example */
    color: #8898aa;
    /* Match example header color */
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom-width: 2px;
    /* Thicker border below header */
}

th.rank-col,
td.rank-col {
    width: 5%;
    text-align: center;
    font-weight: 600;
}

th.icon-col,
td.icon-col {
    width: 8%;
    text-align: center;
}

td.intervention-col {
    font-weight: 500;
    color: #33475b;
}

/* Style for the Max Increase column */
td.max-col {
    background-color: rgba(10, 61, 143, 0.03);
    /* Very subtle blue tint */
    font-weight: 600;
    color: #0a3d8f;
    /* Match the blue theme */
    position: relative;
}

/* Style the header of the Max column */
th.max-col {
    background-color: rgba(10, 61, 143, 0.05);
    color: #0a3d8f;
    font-weight: 600;
}

.initials-circle {
    display: inline-flex;
    /* Use inline-flex for centering */
    align-items: center;
    /* Center vertically */
    justify-content: center;
    /* Center horizontally */
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #ddd;
    /* Default background */
    color: #fff;
    font-size: 0.85em;
    font-weight: 600;
    text-transform: uppercase;
    flex-shrink: 0;
    /* Prevent the circle from shrinking in a flex container */
}

tbody tr {
    transition: background-color 0.15s ease-in-out;
    /* Smooth hover transition */
}

tbody tr:last-child td {
    border-bottom: none;
    /* No border for last row */
}

tbody tr:nth-child(odd) {
    background-color: #fff;
    /* Remove striping for cleaner look */
}

tbody tr:hover {
    background-color: #eef8ff;
    /* Lighter, bluish hover */
}

/* Tooltip Styles */
.has-tooltip {
    position: relative;
    /* Needed for tooltip positioning */
    cursor: help;
    /* Indicate interactivity */
}

.has-tooltip::after {
    content: attr(data-tooltip);
    /* Get text from data-attribute */
    position: absolute;
    left: 0;
    top: 100%;
    /* Position below the cell */
    z-index: 10;
    background-color: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.85em;
    white-space: pre-wrap;
    /* Allow multi-line tooltips */
    min-width: 200px;
    /* Minimum width */
    max-width: 400px;
    /* Maximum width */
    opacity: 0;
    /* Hidden by default */
    visibility: hidden;
    transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
    pointer-events: none;
    /* Tooltip shouldn't block interaction */
    margin-top: 5px;
    /* Small gap */
}

.has-tooltip:hover::after {
    opacity: 1;
    visibility: visible;
}

/* End Tooltip Styles */
.footer {
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9em;
    margin-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: #fff;
    text-decoration: underline;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* Break Record Section */
.break-record.team-section {
    max-width: 1100px;
    margin: 60px auto;
    /* Add more margin */
    padding: 60px 40px;
    width: 90%;
    background: linear-gradient(to bottom, #0a3d8f, #1054b1);
    /* Gradient background */
    backdrop-filter: blur(15px);
    border-radius: 20px;
    text-align: center;
    /* Center text */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.break-record-section h2 {
    font-size: 2.2em;
    font-weight: 700;
    color: #fff;
    color: #0a3d8f;
    margin-bottom: 20px;
}

.break-record-section p {
    font-size: 1.1em;
    color: #5a6a7d;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 20px;
    /* Reverted margin */
}

.break-record-section h3 {
    font-size: 1.8em;
    font-weight: 600;
    color: #15aabf;
    /* Use accent color */
    margin-top: 50px;
    /* Space above team */
    margin-bottom: 30px;
    text-align: center;
}

.team-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    /* Allow wrapping on smaller screens */
    text-align: left;
}

.team-member {
    flex: 0 1 300px;
    max-width: 320px;
    text-align: center;
    margin: 0 15px;
    padding: 25px 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateY(0);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-member:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Team member links */
.team-member a {
    color: #0a3d8f;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.team-member a:hover {
    color: #1054b1;
    text-decoration: underline;
}

/* Green link style for specific links like 3xhelix.com */
.green-link {
    color: #25d366 !important;
    font-weight: 600;
}

.green-link:hover {
    color: #128c7e !important;
    text-shadow: 0 0 5px rgba(37, 211, 102, 0.3);
}

.team-member-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    /* Circular */
    margin-bottom: 15px;
    overflow: hidden;
    /* Important to clip the image */
}

.team-member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Scale image to cover, cropping as needed */
    display: block;
    /* Remove extra space below image */
}

/* Specific adjustment for Oli's photo positioning */
#oli-photo {
    object-position: center 25%;
    /* Push image up slightly in the frame */
}

.team-member h4 {
    font-size: 1.2em;
    font-weight: 600;
    color: #0a3d8f;
    margin-bottom: 5px;
}

.team-member span {
    font-size: 0.9em;
    color: #6c757d;
    margin-bottom: 15px;
    display: block;
}

.team-member p {
    font-size: 0.95em;
    color: #5a6a7d;
    line-height: 1.5;
    margin-bottom: 0;
}

/* Studies Graph Section */
.studies-graph-section {
    max-width: 1100px;
    margin: 60px auto 40px auto;
    /* Reduced bottom margin */
    padding: 30px 20px 20px 20px;
    /* Reduced padding */
    width: 90%;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 80px;
    position: relative;
    z-index: 1;
}

.graph-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 100px;
    height: 350px;
    padding: 0 20px;
    margin-top: 80px;
    position: relative;
    z-index: 1;
    padding-top: 0;
}

.graph-bar-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 120px;
    /* Width for each bar container */
}

.graph-bar {
    width: 100%;
    position: relative;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.graph-bar.red-bar {
    background-color: #e15759;
    height: 50px;
    min-height: 50px;
    /* Ensure visibility */
}

.graph-bar.blue-bar {
    background-color: #4e79a7;
    height: 350px;
}

.graph-bar:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.bar-value {
    position: absolute;
    color: white;
    font-weight: bold;
    font-size: 1.6em;
    text-align: center;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    padding: 0;
    width: 100%;
}

.bar-label-bottom {
    margin-top: 15px;
    font-weight: 600;
    color: #5a6a7d;
    font-size: 1em;
    line-height: 1.3;
}

/* Highlights Subsection */
.highlights-container {
    margin-top: 10px;
    /* Reduced top margin */
    display: flex;
    justify-content: space-around;
    /* Distribute items */
    gap: 20px;
    flex-wrap: wrap;
    border-top: 1px solid #dde;
    /* Separator line */
    padding-top: 40px;
    /* Space below separator */
}

.highlight-item {
    flex-basis: calc(50% - 20px);
    /* Roughly 2 items per row */
    text-align: center;
    padding: 30px 25px;
    background: linear-gradient(135deg, #0a3d8f 0%, #1054b1 100%);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(10, 61, 143, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateY(0);
}

.highlight-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.highlight-item .main-text {
    font-size: 1.8em;
    font-weight: 700;
    color: #fff;
    display: block;
    margin-bottom: 5px;
}

.highlight-item .sub-heading {
    font-size: 1.0em;
    /* Slightly larger sub-heading */
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    /* Bolder sub-heading */
}

/* Image Sections - constrain to opening section width */
.top-40-section,
.follistatin-section {
    max-width: 1100px;
    margin: 40px auto;
    padding: 40px 20px;
}

.top-40-image,
.follistatin-image {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Study Link in Full Table */
.study-link {
    display: block;
    /* Ensure it's on a new line */
    font-size: 0.8em;
    color: #6c839b;
    /* Lighter shade */
    text-decoration: underline;
    margin-top: 3px;
    /* Small space above link */
}

/* Contact Section */
.content-section {
    max-width: 1100px;
    margin: 60px auto;
    /* Add margin */
    width: 90%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* WhatsApp Button */
.whatsapp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    margin-top: 15px;
    transform: translateY(0);
}

.whatsapp-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.5);
}

/* Floating Mouse Button */
#floating-mouse-button {
    position: fixed;
    bottom: 20px;
    left: 20px;
    /* Move to bottom-left */
    z-index: 1010;
    transition: transform 0.1s ease-out;
    display: block;
    /* Ensure proper positioning */
}

#floating-mouse-button img {
    width: 100px;
    /* Make image larger */
    height: auto;
    display: block;
    /* Remove extra space */
    filter: drop-shadow(2px 2px 3px rgba(0, 0, 0, 0.3));
    /* Optional shadow */
    transform: scaleY(-1);
    /* Flip vertically */
}

#floating-mouse-button:active {
    transform: scale(0.9);
    /* Shrink slightly on click */
}

/* Section Title with Icon */
.section-title-container {
    display: flex;
    align-items: center;
    /* Vertically align items */
    justify-content: center;
    /* Center title and icon */
    gap: 10px;
    /* Space between title and icon */
    margin-bottom: 25px;
    /* Space below title */
}

.section-title-container h2 {
    margin: 0;
    /* Reset heading margin for better flex alignment */
}

.title-mouse-icon {
    height: 30px;
    /* Adjust size as needed */
}

.button-with-ear-container {
    position: relative;
    /* For absolute positioning of the ear */
    display: inline-block;
    /* Keep button flow */
    vertical-align: middle;
    /* Align with adjacent button if needed */
}

.button-ear {
    position: absolute;
    width: 25px;
    /* Size of the ear */
    height: auto;
    top: -10px;
    /* Adjust position: higher */
    right: -9px;
    /* Symmetrical positioning with left ear */
    z-index: 0;
    /* Behind the button (which is z-index 1) */
}

.left-button-ear {
    left: -10px;
    /* Position even further left */
    right: auto;
    /* Override the default right position */
}

/* Override for hero buttons specifically */
.hero-buttons .button-ear {
    right: 5px;
}

.hero-buttons .left-button-ear {
    left: -10px;
    right: auto;
}

.button-tail {
    position: absolute;
    width: 20px;
    /* Size of the tail */
    height: auto;
    bottom: -5px;
    /* Position below the button */
    right: 8px;
    /* Move to the left */
    z-index: -1;
    /* Place behind the button */
}

.hero-paws {
    display: block;
    /* Put on its own line */
    margin: 40px auto 0;
    /* Center below buttons with top margin */
    width: 100px;
    /* Adjust size as needed */
    height: auto;
}

.see-more-link {
    text-align: center;
    margin-top: 10px;
}

.hero-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95em;
    transition: color 0.2s ease;
}

.hero-link:hover {
    color: #0056b3;
}

/* Center lifespan increase columns in preview table (desktop and mobile) */
#leaderboard-preview-table th:last-child,
#leaderboard-preview-table td:last-child {
    text-align: center;
}

/* Center Max and Avg Lifespan Increase columns in full table (desktop and mobile) */
#leaderboard-table th:nth-child(5),
#leaderboard-table td:nth-child(5),
#leaderboard-table th:nth-child(6),
#leaderboard-table td:nth-child(6) {
    text-align: center;
}

/* ================================
   MOBILE RESPONSIVE STYLES
   ================================ */

/* Mobile Navigation */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5em;
    color: #0a3d8f;
    cursor: pointer;
    padding: 5px;
}

.mobile-nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #0a3d8f;
    margin: 5px 0;
    transition: 0.3s;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1999;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100%;
    background-color: #fff;
    z-index: 2000;
    transition: right 0.3s ease;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 1.5em;
    color: #0a3d8f;
    cursor: pointer;
}

.mobile-menu-nav {
    padding: 20px 0;
}

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

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

.mobile-menu-nav a {
    display: block;
    padding: 15px 20px;
    color: #343a40;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid #f8f9fa;
    transition: background-color 0.2s ease;
}

.mobile-menu-nav a:hover {
    background-color: #f8f9fa;
    color: #0a3d8f;
}

.mobile-header-button {
    margin: 20px;
    display: block;
    text-align: center;
}

/* Tablet Styles (768px - 1024px) */
@media (max-width: 1024px) {
    .hero-section {
        gap: 30px;
        width: 95%;
        padding: 30px 0;
    }

    .hero-left h2 {
        font-size: 2.1em;
    }

    .hero-right {
        flex: 0 0 50%;
    }

    .team-container {
        gap: 30px;
    }

    .highlights-container {
        gap: 15px;
    }

    .highlight-item {
        flex-basis: calc(50% - 15px);
    }

    .studies-graph-section p,
    .studies-graph-section>p {
        margin-bottom: 100px !important;
    }
}

/* Mobile Styles (768px and below) */
@media (max-width: 768px) {

    /* Header Mobile Styles */
    .header {
        padding: 10px 15px;
        height: 60px;
    }

    .header .logo-container img {
        height: 20px;
    }

    .header .logo-prefix {
        font-size: 0.7em;
    }

    .main-nav {
        display: none;
    }

    .header-button {
        display: none;
    }

    .mobile-nav-toggle {
        display: block;
    }

    .mobile-menu {
        display: block;
    }

    .mobile-menu-overlay.active {
        display: block;
    }

    /* Content Mobile Styles */
    .content {
        padding-top: 20px;
    }

    /* Hero Section Mobile */
    .hero-section {
        flex-direction: column;
        gap: 30px;
        width: 95%;
        padding: 20px 0;
    }

    .hero-left {
        text-align: center;
    }

    .hero-left h2 {
        font-size: 1.8em;
        margin-bottom: 20px;
    }

    .hero-left p {
        font-size: 1em;
        margin-bottom: 25px;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .hero-buttons a {
        width: 100%;
        max-width: 280px;
        text-align: center;
        padding: 15px 25px;
        font-size: 1em;
        margin-right: 0;
    }

    .hero-right {
        flex: none;
        width: 100%;
        order: -1;
        /* Move table above text on mobile */
    }

    /* Table Mobile Styles */
    .hero-right {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    #leaderboard-preview-table {
        overflow-x: visible !important;
        min-width: auto !important;
        width: 100%;
    }

    #leaderboard-preview-table th,
    #leaderboard-preview-table td {
        padding: 6px 4px;
        font-size: 0.75em;
        word-wrap: break-word;
    }

    #leaderboard-preview-table th:first-child,
    #leaderboard-preview-table td:first-child {
        width: 12%;
        text-align: center;
    }

    #leaderboard-preview-table th:nth-child(2),
    #leaderboard-preview-table td:nth-child(2) {
        width: 15%;
        text-align: center;
    }

    #leaderboard-preview-table th:nth-child(3),
    #leaderboard-preview-table td:nth-child(3) {
        width: 48%;
        /* Reduced from 55% to give less empty space */
        font-size: 0.7em;
        padding: 6px 2px;
        /* Reduced padding */
        word-break: break-word;
        hyphens: auto;
    }

    #leaderboard-preview-table th:last-child,
    #leaderboard-preview-table td:last-child {
        width: 25%;
        /* Increased to use the space better */
        text-align: center;
        font-weight: 600;
        color: #0a3d8f;
    }

    .data-header {
        font-size: 1.1em;
        padding: 10px 15px;
    }

    #leaderboard-container {
        padding: 15px;
    }

    /* Full Table Mobile Styles - Keep scrolling */
    table {
        min-width: 500px;
        /* Ensure table doesn't get too cramped */
        touch-action: pan-x;
        /* Enable horizontal scrolling/swiping */
    }

    th,
    td {
        padding: 8px 6px;
        font-size: 0.85em;
    }

    th.rank-col,
    td.rank-col {
        width: 8%;
    }

    th.icon-col,
    td.icon-col {
        width: 10%;
    }

    /* Hero Section Mobile - Reorder elements */
    .hero-section {
        flex-direction: column;
        gap: 30px;
        width: 95%;
        padding: 20px 0;
    }

    .hero-left {
        text-align: center;
        order: 1;
        /* Text first */
    }

    .hero-right {
        flex: none;
        width: 100%;
        order: 2;
        /* Table second, after text and buttons */
    }

    /* Mobile button positioning fixes */
    .hero-buttons a {
        width: 100%;
        max-width: 280px;
        text-align: center;
        padding: 12px 25px;
        /* Match desktop height */
        font-size: 1em;
        margin-right: 0;
        position: relative;
        height: auto;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Fix ear positioning on mobile for pitch deck button */
    .hero-buttons .button-with-ear-container .button-ear {
        right: -50px;
        /* Move further right to show properly */
        top: -10px;
    }

    /* Fix tail positioning on mobile for leaderboard button */
    .hero-buttons .button-with-ear-container .button-tail {
        right: -55px;
        /* Move further right to show properly */
        bottom: -5px;
    }

    /* Mobile Menu Redesign - Remove logo */
    .mobile-menu-header {
        display: none;
        /* Hide the entire header with logo */
    }

    .mobile-menu-nav {
        padding: 30px 0 20px 0;
        /* Add top padding since no header */
    }

    .mobile-menu-nav a {
        display: block;
        padding: 18px 25px;
        color: #343a40;
        text-decoration: none;
        font-weight: 500;
        border-bottom: 1px solid #f1f3f4;
        transition: all 0.3s ease;
        position: relative;
        background: linear-gradient(145deg, #ffffff, #f8f9fa);
        margin: 2px 15px;
        border-radius: 8px;
        box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1), -1px -1px 2px rgba(255, 255, 255, 0.8);
    }

    .mobile-menu-nav a:hover {
        background: linear-gradient(145deg, #f0f4f8, #e9ecef);
        color: #0a3d8f;
        transform: translateY(-1px);
        box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.15), -2px -2px 4px rgba(255, 255, 255, 0.9);
    }

    .mobile-header-button {
        margin: 20px 15px;
        display: block;
        text-align: center;
        background: linear-gradient(145deg, #0a3d8f, #1054b1);
        border-radius: 8px;
        box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1), -1px -1px 2px rgba(255, 255, 255, 0.1);
    }

    /* Add close button to top right of mobile menu */
    .mobile-menu::before {
        content: "×";
        position: absolute;
        top: 15px;
        right: 20px;
        font-size: 2em;
        color: #0a3d8f;
        cursor: pointer;
        z-index: 10;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: rgba(10, 61, 143, 0.1);
        transition: all 0.3s ease;
    }

    .mobile-menu::before:hover {
        background: rgba(10, 61, 143, 0.2);
        transform: scale(1.1);
    }

    /* Break Record Section Mobile */
    .break-record-section {
        margin: 40px auto;
        padding: 30px 15px;
        width: 95%;
    }

    .break-record-section h2 {
        font-size: 1.8em;
        margin-bottom: 15px;
    }

    .break-record-section p {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .section-title-container {
        flex-direction: column;
        gap: 5px;
    }

    .title-mouse-icon {
        height: 25px;
    }

    /* Team Section Mobile */
    .team-container {
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }

    .team-member {
        max-width: 300px;
        width: 100%;
    }

    .team-member-photo {
        width: 120px;
        height: 120px;
        margin: 0 auto 15px;
    }

    .team-member h4 {
        font-size: 1.1em;
    }

    .team-member span {
        font-size: 0.85em;
    }

    .team-member p {
        font-size: 0.9em;
        line-height: 1.5;
    }

    /* Highlights/Roadmap Mobile */
    .highlights-container {
        flex-direction: column;
        gap: 20px;
    }

    .highlight-item {
        flex-basis: auto;
        padding: 25px 20px;
    }

    .highlight-item .main-text {
        font-size: 1.5em;
    }

    .highlight-item .sub-heading {
        font-size: 0.9em;
    }

    /* Graph Bars Mobile */
    .graph-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .graph-item {
        width: 100%;
        max-width: 200px;
    }

    .graph-bar.blue-bar {
        height: 200px;
    }

    /* Floating Button Mobile */
    #floating-mouse-button {
        bottom: 15px;
        left: 15px;
    }

    #floating-mouse-button img {
        width: 70px;
    }

    /* WhatsApp Button Mobile */
    .whatsapp-button {
        padding: 12px 20px;
        font-size: 0.9em;
        width: 100%;
        max-width: 250px;
        text-align: center;
        margin: 15px auto 0;
        display: block;
    }

    /* Content Section Mobile */
    .content-section {
        width: 95%;
        margin: 30px auto;
        padding: 0 15px;
    }

    /* Mobile-only instruction text */
    .mobile-table-instruction {
        display: block !important;
    }

    .studies-graph-section p,
    .studies-graph-section>p {
        margin-bottom: 100px !important;
    }
}

/* Small Mobile Styles (480px and below) */
@media (max-width: 480px) {
    .header {
        padding: 8px 12px;
        height: 55px;
    }

    .hero-left h2 {
        font-size: 1.6em;
    }

    .hero-buttons a {
        padding: 12px 20px;
        font-size: 0.95em;
    }

    .break-record-section {
        padding: 25px 12px;
    }

    .break-record-section h2 {
        font-size: 1.6em;
    }

    .team-member {
        max-width: 280px;
    }

    .team-member-photo {
        width: 100px;
        height: 100px;
    }

    .highlight-item {
        padding: 20px 15px;
    }

    .highlight-item .main-text {
        font-size: 1.3em;
    }

    table {
        min-width: 450px;
    }

    th,
    td {
        padding: 6px 4px;
        font-size: 0.8em;
    }

    #floating-mouse-button img {
        width: 60px;
    }

    .studies-graph-section p,
    .studies-graph-section>p {
        margin-bottom: 100px !important;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {

    /* Remove hover effects on touch devices */
    .highlight-item:hover {
        transform: none;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    }

    .graph-bar:hover {
        transform: none;
    }

    /* Increase touch targets */
    .hero-buttons a {
        min-height: 44px;
    }

    .mobile-menu-nav a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .whatsapp-button {
        min-height: 44px;
    }
}

/* Landscape mobile optimization */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        flex-direction: row;
        align-items: flex-start;
    }

    .hero-left {
        flex: 1;
        text-align: left;
    }

    .hero-right {
        flex: 0 0 45%;
        order: 0;
    }

    .hero-left h2 {
        font-size: 1.6em;
    }

    .hero-buttons {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .hero-buttons a {
        width: auto;
        margin-right: 10px;
        margin-bottom: 10px;
    }
}

/* Center numbers in Human Age Equivalent column but not header */
#leaderboard-table td:nth-child(4) {
    text-align: center;
}

#leaderboard-table th:nth-child(4) {
    text-align: left;
    /* Keep header left-aligned */
    font-size: 0.8em;
    line-height: 1.2;
    padding: 6px 4px;
}

::selection {
    background: #b3d4fc;
    color: #111;
}

/* Pitch Deck Page Styles */
.pitch-deck-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 80vh;
}

.document-buttons-container {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.document-btn {
    position: relative;
    overflow: hidden;
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.document-btn:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4) !important;
}

.document-btn:active {
    transform: translateY(-4px) scale(0.98);
}

/* Gradient hover effects for different buttons */
.document-btn:nth-child(1):hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.5) !important;
}

/* Active navigation link styling */
.main-nav a.active {
    color: #0a3d8f;
    font-weight: 600;
    position: relative;
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 1px;
}

/* Button ripple effect */
.document-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.document-btn:active::before {
    width: 300px;
    height: 300px;
}

/* Mobile responsiveness for pitch deck page */
@media (max-width: 768px) {
    .pitch-deck-section {
        padding: 40px 15px !important;
        min-height: 70vh;
    }

    .pitch-deck-section h1 {
        font-size: 2em !important;
        margin-bottom: 15px !important;
    }

    .pitch-deck-section p {
        font-size: 1em !important;
        margin-bottom: 40px !important;
    }

    .document-buttons-container {
        gap: 25px !important;
        max-width: 100% !important;
    }

    .document-btn {
        padding: 18px 30px !important;
        font-size: 1.1em !important;
    }

    .btn-secondary {
        padding: 12px 25px !important;
        font-size: 1em !important;
    }
}

/* ===== Info Popup Button ===== */
.info-popup-btn {
    background: linear-gradient(135deg, #e8f0fe, #d0e2ff);
    border: 1.5px solid #5a9cf5;
    color: #0a3d8f;
    font-size: 0.75em;
    font-weight: 700;
    cursor: pointer;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    margin-left: 6px;
    padding: 0;
    line-height: 1;
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-family: inherit;
    box-shadow: 0 2px 6px rgba(10, 61, 143, 0.15);
    position: relative;
    top: -1px;
}

.info-popup-btn:hover,
.info-popup-btn:focus {
    color: #fff;
    background: linear-gradient(135deg, #0a3d8f, #1a5cc8);
    border-color: #0a3d8f;
    outline: none;
    transform: scale(1.2);
    box-shadow: 0 3px 12px rgba(10, 61, 143, 0.35);
}

/* ===== Info Modal Overlay ===== */
.info-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.info-modal-overlay.active {
    display: flex;
    animation: modalFadeIn 0.25s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.info-modal-content {
    background: #fff;
    border-radius: 16px;
    padding: 32px 36px;
    max-width: 480px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideUp 0.3s ease;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.info-modal-content h3 {
    margin: 0 0 16px;
    font-size: 1.3em;
    color: #0a3d8f;
    font-weight: 700;
}

.info-modal-content p {
    margin: 0 0 12px;
    font-size: 1em;
    line-height: 1.65;
    color: #333;
}

.info-modal-content p:last-child {
    margin-bottom: 0;
}

.info-modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    font-size: 1.8em;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.2s ease;
}

.info-modal-close:hover {
    color: #333;
}

@media (max-width: 768px) {
    .info-modal-content {
        padding: 24px 20px;
        margin: 0 15px;
    }
}