:root {
    --bg-dark: #040406;
    --bg-med: #0f0f0f;
    --bg-light: #dfdfdf;
    --text-dark: #040406;
    --text-light: #f0f0f0;
    --text-muted: #afafaf;
    --primary: #8de24f;
    --secondary: #f142ba;
    --border: #303030;


}

/* Keep the scrolling container (body) as the perspective root.
   Use overflow-y:auto so the page actually scrolls (required for the translateZ parallax trick).
   Use transform-style: preserve-3d so children maintain 3D transforms. */
html,
body {
    background-color: var(--bg-dark);
    font-size: 20px;
    height: 100vh;
    margin: 0;
    color: var(--text-muted);
    font-family: "Roboto", sans-serif;
    text-align: center;
}

@media (max-width: 800px) {

    html,
    body {
        font-size: 16px;
    }
}

h1 {
    color: var(--text-light);
    /* font-family: "Bakbak One", sans-serif; */
    font-size: 4rem;
    font-weight: 800;
    text-align: center;
    margin: 2rem 0;
    /* font-weight: lighter; */
}

h2 {
    /* color: var(--primary); */
    color: var(--text-light);
    font-size: 2rem;
    font-weight: 600;
    margin: 1rem 0;
}

h3 {
    color: var(--text-light);
    font-weight: 800;
    margin-bottom: 0;
    font-size: 1.8rem;
}

h4 {
    margin-top: 0;
    font-weight: 600;
    color: var(--primary);
}

blockquote {
    font-size: 1.5rem;
    font-weight: 300;
    font-style: italic;
    color: var(--primary);
    margin: 2rem auto;
}

p a {
    position: relative;
    color: var(--primary);
    text-decoration: none;
}

p a:hover{
    color: color-mix(in srgb, var(--primary), black 10%);
}

p a::before {
    content: "";
    position: absolute;
    display: block;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--link);
    transform: scaleX(0);
    transition: all 0.3s ease;
    transform-origin: left;
}

p a:hover::before {
    transform: scaleX(1);
    background-color: var(--primary);
}

p {
    color: var(--text-muted);
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-size: 1rem;
    margin: 1rem 0;
}

li::marker {
    color: var(--primary);
}

ul {
    text-align: left;
    margin: auto;
}

button {
    margin: 1rem 0;
    font-size: 1.6rem;
}

/* Apply 3D perspective only to parallax content so fixed-position elements
   aren't affected by creating a new containing block. Wrap parallax layers
   in <div class="parallax"> ... </div>. */
.parallax {
    perspective: 1px;
    transform-style: preserve-3d;
    width: 100%;
    height: 100vh;
    /* make it the viewport-height scroll container */
    overflow-y: auto;
    /* scrolling happens here so translateZ parallax works */
    overflow-x: hidden;
    /* prevent horizontal scrolling inside the parallax container */
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
    /* give room for the fixed menu so content isn't hidden underneath */
}

.main-page-content {
    margin-top: 80px;
    /* give room for the fixed menu so content isn't hidden underneath */
    padding: 7vh 15vw;
    background: linear-gradient(to top, color-mix(in srgb, var(--primary) 4%, transparent 96%), var(--bg-dark));
}


.top_layer {
    /* Foreground layer: stays at the natural plane */
    position: relative;
    /* participate in normal flow so page can scroll */
    transform: translateZ(0);
    width: 100%;
    /* one viewport tall */
    /* background-color: var(--bg-dark); */
    background-color: transparent;
    box-sizing: border-box;
    padding: 0;
    /* compensate for skew */
    /* pull the top layer upward so it's visible on initial load */
    z-index: 2;
    /* ensure it sits above the base layer */
}



.base_layer {
    /* Background layer: pushed back in 3D space for parallax */
    position: relative;
    /* keep in flow */
    transform: translateZ(-1px) scale(2);
    background: var(--bg-light);
    width: 100%;
    min-height: 80vh;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: -10;

}

.base_layer::before {
    position: absolute;
    content: "";
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    opacity: 0;
    animation: fadeIn 1s linear forwards;
    /* background-image: linear-gradient(white, var(--primary)); */
    z-index: -1;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@media (max-width: 800px) {
    .base_layer {
        flex-direction: column;
    }
}

/* .logo removed (unused) */

.action {
    background-color: var(--primary);
    color: var(--text-dark);
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    /* font-family: "Bakbak One", sans-serif; */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    will-change: transform, background-color, box-shadow, color;
    text-decoration: none;
    border: 2px solid var(--primary);
}

.action:hover {
    transform: translateY(-5px);
    scale: 1.01;
    background-color: var(--bg-dark);
    color: var(--primary);
    box-shadow: 0 10px 20px -5px var(--primary);
}

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

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Utility classes for load animations */
.animate-on-load {
    opacity: 0;
    /* Start hidden */
    animation: fadeInUp 0.8s ease-out forwards;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
}

.delay-500 {
    animation-delay: 0.5s;
}

.delay-600 {
    animation-delay: 0.6s;
}

.delay-700 {
    animation-delay: 0.7s;
}

.delay-800 {
    animation-delay: 0.8s;
}

/* Scroll Animation Classes */
.scroll-hidden {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

.scroll-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Use border-box everywhere to avoid padding/width surprises that cause horizontal scroll */
*,
*::before,
*::after {
    box-sizing: border-box;
}

video#banner-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.5;
}

/* Load-in animation: slide up + fade for headline parts */


@media (max-width:600px) {
    /* .banner-text and .banner-title removed (unused) */
}

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

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

@keyframes glow {
    from {
        text-shadow: 0 0 5px var(--primary), 0 0 10px var(--primary);
    }

    to {
        text-shadow: 0 0 10px var(--primary), 0 0 15px var(--primary);
    }
}

@-webkit-keyframes glow {
    from {
        text-shadow: 0 0 5px var(--primary), 0 0 10px var(--primary);
    }

    to {
        text-shadow: 0 0 10px var(--primary), 0 0 15px var(--primary);
    }
}

/* form */
form {
    display: flex;
    flex-direction: column;
    width: 100%;
}

form label {
    font-family: "Roboto", sans-serif;
    font-size: 1rem;
    color: var(--text-light);
}

form input,
form textarea {
    margin-top: 8px;
    margin-bottom: 16px;
    padding: 10px;
    border: 1px solid var(--text-muted);
    border-radius: 4px;
    font-size: 1rem;
    font-family: "Roboto", sans-serif;
    background-color: var(--bg-med);
    color: var(--text-light);
}

#form-message {
    width: 100%;
    font-size: 1rem;
    resize: vertical;
    font-family: "Roboto", sans-serif;
}

.form-wrapper {
    width: 100%;
    margin: 2rem auto;
    /* background-color: var(--bg-dark);
    padding: 3rem;
    border-radius: 8px;
    border: 2px solid var(--border); */
}

#submit-btn {
    transition: all 0.1s ease-in-out;
}

#submit-btn:hover {
    transform: scale(1.002);
    background-color: var(--bg-dark);
    color: var(--text-muted);
}

.contact-section {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-bottom: 60px;
}


.profile {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 50px;
    vertical-align: middle;
}

@media (max-width: 750px) {
    .profile {
        flex-direction: column;
        align-items: center;
    }

    .contact-section {
        flex-direction: column;
    }

    .form-wrapper {
        width: 100%;
    }
}

/* TierScores table styling */
.tier-table-wrapper {
    width: 100%;
    overflow-x: auto;
    /* margin-top: 2rem; */
    background-color: var(--bg-dark);
    padding: 2rem;
    border-radius: 16px;
    border: 2px solid var(--border);

}

.tier-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    margin: 0;
    color: var(--text-light);

}

.tier-table th,
.tier-table td {
    padding: 12px 10px;
    vertical-align: top;
    border-bottom: 2px solid var(--border);
    color: var(--text-muted);
}

.tier-table thead th {
    border-bottom: 2px solid var(--border);
    color: var(--text-light);
}

/* .tier-table tbody tr:nth-child(even) {
    background: rgba(255,255,255,0.01);
} */

@media (max-width: 700px) {

    .tier-table th,
    .tier-table td {
        padding: 10px 8px;
    }

    .tier-table-wrapper {
        padding: 0;
        background-color: transparent;
        border: none;
    }
}

/* Color the tier category (first column) with the primary color */
.tier-table td:first-child,
.tier-table th:first-child {
    color: var(--primary);
    font-weight: 700;
    width: 80px;
}

/* Ensure the score-range column stays on one line on larger screens */
.tier-table th:nth-child(2),
.tier-table td:nth-child(2) {
    min-width: 120px;
    /* widen the second column */
    white-space: nowrap;
    /* prevent breaks inside the score ranges */
    text-align: center;
}

@media (max-width: 700px) {

    /* Allow wrapping on small screens to avoid horizontal overflow */
    .tier-table th:nth-child(2),
    .tier-table td:nth-child(2) {
        white-space: normal;
        min-width: auto;
        text-align: left;
    }

}



/* Convert table to stacked cards on very narrow screens */
@media (max-width: 600px) {
    .tier-table-wrapper {
        margin-top: 1rem;
    }

    /* hide header and show rows as cards */
    .tier-table {
        display: block;
    }

    .tier-table thead {
        display: none;
    }

    .tier-table tbody {
        display: block;
    }

    .tier-table tr {
        display: block;
        margin: 0 0 1rem 0;
        padding: 0.75rem;
        background: rgba(255, 255, 255, 0.02);
        border-radius: 8px;
        border: 1px solid rgba(255, 255, 255, 0.03);
    }

    /* make each cell a row inside the card */
    .tier-table td {
        display: flex;
        padding: 6px 0;
        border-bottom: none;
    }

    .tier-table td:nth-child(1) {
        flex-direction: column;
    }
    .tier-table td:nth-child(3) {
        flex-direction: column;
    }

    /* label before each value (use plain text labels for accessibility) */
    /* .tier-table tr td:nth-child(1)::before {
        content: "Tier";
        width: 90px;
        flex: 0 0 90px;
        color: var(--primary);
        font-weight: 700;
    }

    .tier-table tr td:nth-child(2)::before {
        content: "Score";
        width: 90px;
        flex: 0 0 90px;
        color: var(--text-light);
        font-weight: 600;
    }

    .tier-table tr td:nth-child(3)::before {
        content: "Description";
        width: 90px;
        flex: 0 0 90px;
        color: var(--text-light);
        font-weight: 600;
    } */

    /* make values wrap and take remaining space */
    .tier-table td {
        gap: 8px;
        align-items: flex-start;
    }

    .tier-table td>* {
        flex: 1 1 auto;
    }

    /* adjust typography for mobile cards */
    .tier-table td {
        font-size: 0.95rem;
        color: var(--text-muted);
    }
}


.profile img {
    border-radius: 50%;
    height: auto;
    width: 200px;
    flex-shrink: 0;
    /* Prevent image from shrinking */

}

.profile div {
    flex: 1;
    /* Take up remaining space */
}

.reviews-carousel {
    position: relative;
    z-index: 1;
    max-width: 800px;
    width: 90%;
    height: 50vh;
    margin: 0 auto;
    padding: 3rem;
    background: rgba(4, 4, 6, 0.7);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
@media (max-width: 900px) and (max-height: 700px) {
    .reviews-carousel {
        height: 70vh;
    }
    
}

/* Next & previous buttons */
.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: var(--primary);
    font-weight: bold;
    font-size: 24px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    text-decoration: none;
}

/* Position the "next button" to the right */
.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

/* Position the "prev button" to the left */
.prev {
    left: 0;
    border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover,
.next:hover {
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
}

.review-item {
    display: none;
    text-align: center;
    animation: fadeEffect 1s;
    
    
}

.review-item.active {
    display: block;
}

.review-text {
    font-size: 1.8rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--text-light);
    line-height: 1.4;

}

.review-author {
    font-size: 1.2rem;
    color: var(--primary);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.carousel-dots {
    text-align: center;
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.dot {
    height: 12px;
    width: 12px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
}

.dot.active {
    background-color: var(--primary);
    transform: scale(1.2);
    box-shadow: 0 0 10px var(--primary);
}

@keyframes fadeEffect {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.info-block {
    /* background-color: var(--bg-dark); */
    min-height: 100vh;
    padding: 5vh 15vw;
    background: linear-gradient(to top, color-mix(in srgb, var(--primary) 4%, var(--bg-dark) 96%), var(--bg-dark));

}

.info-block::before {
    content: "";
    position: absolute;
    z-index: 1;
    top: -4em;
    left: 0;
    pointer-events: none;
    background-image: linear-gradient(to top, var(--bg-dark), rgba(255, 255, 255, 0));
    width: 100%;
    height: 4em;

}

.feature{
    display: flex;
    margin: 5vh 0vh;
}
.feature svg{
    width: 300px;
    height: auto;
    margin-right: 60px;
    /* Subtle neon glow using drop-shadow. Adjust color via --primary. */
    filter: drop-shadow(0 0 22px var(--primary));
    transition: filter 0.25s ease, transform 0.25s ease;
    will-change: filter, transform;
    /* gentle pulsing between two glow strengths */
}


@media (min-width: 900px) {
        .feature p{
            text-align: left;
            margin-right: 40px;
        }
        .feature h2{
            text-align: left;
        }
    
}
@media (max-width: 900px) {
    .feature{
        flex-direction: column;
        align-items: center;
    }
    .feature svg{
        width: 200px;
        margin: 0;
    }
}

/* =========================================
   Common SVG Styles
   ========================================= */
.svg-stroke-base {
    fill: none;
    stroke: var(--primary);
}

.svg-fill-primary {
    fill: var(--primary);
}

/* Stroke Widths */
.svg-w-10 { stroke-width: 10px; }
.svg-w-16 { stroke-width: 16px; }
.svg-w-46 { stroke-width: 46px; }
.svg-w-50 { stroke-width: 50px; }
.svg-w-64 { stroke-width: 64px; }

/* Stroke Properties */
.svg-round { 
    stroke-linecap: round; 
    stroke-linejoin: round; 
}

.svg-cap-round { 
    stroke-linecap: round; 
}

.svg-miter { 
    stroke-miterlimit: 10; 
}

.svg-miter-1 {
    stroke-miterlimit: 1;
}

/* Premium Redesign - Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
    width: 100%;
}

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                box-shadow 0.4s ease, 
                border-color 0.4s ease;
}

.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
}

.glass-card h2 {
    margin-top: 1.5rem;
    font-size: 1.8rem;
}

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

.glass-card svg {
    width: 120px; /* Smaller than the original 300px/200px */
    height: auto;
    margin: 0 auto;
    filter: drop-shadow(0 0 15px rgba(141, 226, 79, 0.3)); /* Subtle glow using primary color */
    transition: filter 0.3s ease;
}

.glass-card:hover svg {
    filter: drop-shadow(0 0 25px var(--primary));
}

/* Make the first card span 2 columns on larger screens for Bento effect */
@media (min-width: 1024px) {
    .glass-card:first-child {
        grid-column: span 2;
        flex-direction: row;
        text-align: left;
        align-items: center;
        gap: 3rem;
    }
    
    .glass-card:first-child svg {
        width: 180px;
        margin: 0;
    }

    .glass-card:first-child div {
        flex: 1;
    }
    
    .glass-card:first-child h2 {
        margin-top: 0;
    }
}
/* Accordion Styles */
.accordion-container {
    margin-top: 2rem;
    border-top: 1px solid var(--border);
}

.accordion-item {
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.accordion-header {
    padding: 1.5rem 1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
    background: transparent;
}

.accordion-item.active .accordion-header {
    background-color: rgba(255, 255, 255, 0.02);
}

.accordion-header:hover {
    background-color: rgba(255, 255, 255, 0.03) !important;
}

.accordion-title {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.accordion-number {
    color: var(--primary);
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.8;
    font-family: 'Roboto', sans-serif;
    display: none;
}

.accordion-icon {
    width: 20px;
    height: 20px;
    position: relative;
}

.accordion-icon::before,
.accordion-icon::after {
    content: '';
    position: absolute;
    background-color: var(--primary);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease;
}

.accordion-icon::before {
    width: 16px;
    height: 2px;
}

.accordion-icon::after {
    width: 2px;
    height: 16px;
}

/* Active State Animations */
.accordion-item.active .accordion-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.accordion-content {
    max-height: 0;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 1rem;
}

.accordion-inner {
    padding: 1rem 0 1.5rem 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    color: var(--text-muted);
}

@media (min-width: 768px) {
    .accordion-inner {
        padding: 1rem 0 2.5rem 3.5rem;
        flex-direction: row;
        gap: 3rem;
    }
}

/* Modifier for single column layout (used in about.html) */
.accordion-inner.single-column {
    padding: 2rem 0;
}

@media (min-width: 768px) {
    .accordion-inner.single-column {
        flex-direction: column;
        gap: 1.5rem;
        padding: 2rem 0;
    }
}

.accordion-data {
    flex: 1;
}

.accordion-insight {
    flex: 1;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-left: 0;
    padding-top: 1.5rem;
}

@media (min-width: 768px) {
    .accordion-insight {
        border-left: 2px solid rgba(255, 255, 255, 0.05);
        border-top: none;
        padding-left: 2rem;
        padding-top: 0;
    }
}

.accordion-inner h4 {
    color: var(--text-light);
    margin-top: 0;
    font-size: 1rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.accordion-inner ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.accordion-inner li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.2rem;
}

.accordion-inner li::before {
    content: "\2022";
    color: var(--primary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.accordion-inner p {
    margin: 0;
    line-height: 1.6;
    font-size: 0.95rem;
}

.two-col{
    display: flex;
    gap: 5rem;
    flex-direction: row;
    justify-content: space-around;
    margin-top: 80px;
}
.two-col div{
    flex: 1;
}
@media (max-width: 800px) {
    .two-col{
        flex-direction: column;
    }
}
.two-col div ul{
    margin: auto;
}