* {
    box-sizing: border-box;
}
    
html {
    scroll-behavior: smooth;
    overflow-y: scroll;
}


:root {
    --bg-color: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    --text-color: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.1);
    --accent-color: #ffa500;
}

body { 
    background: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    padding-bottom: 50px; /* match the footer height */
    position: relative;
    /* overflow-x: hidden; */
}

section {
    padding: 1rem 1rem;
    text-align: center;
}

h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: lighter;
    padding: 2rem;
}

br {
    height: 50px
}

p {
    padding-left: 10%; 
    padding-right: 10%;  
}

::-webkit-scrollbar {
        width: 10px;
    }

/* Buttons */
::-webkit-scrollbar-button:single-button {
    background-color: #2c2c2c;
    display: block;
    background-size: 10px;
    background-repeat: no-repeat;
}

/* Up */
::-webkit-scrollbar-button:single-button:vertical:decrement {
    height: 15px;
    width: 10px;
    background-position: center 2px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' fill='rgb(255, 165, 0)'><polygon points='50,00 0,50 100,50'/></svg>");
}

/* Down */
::-webkit-scrollbar-button:single-button:vertical:increment {
    height: 15px;
    width: 10px;
    background-position: center 2px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' fill='rgb(255, 165, 0)'><polygon points='0,0 100,0 50,50'/></svg>");
}

::-webkit-scrollbar-track {
    background: #2c2c2c;
    opacity: 50%;
}

::-webkit-scrollbar-thumb {
    background: #ffa500;
    border-radius: 10px;
    cursor: pointer;
}

/* Light mode override */
body.light-mode {
    --bg-color: linear-gradient(135deg, #d2dde2, #a4adb1, #b8d7e4);
    --text-color: #1a1a1a;
    --card-bg: rgba(255, 255, 255, 0.6);
}
        
.logo img {
    max-width: 70%;
    height: auto;
    align-items: center;
    padding: 25px;
}

.logo_sub_pg img {
    max-width: 20%;
    height: auto;
    align-items: center;
    padding: 20px;
    }

/* === Glass Nav Bar === */
.glass-nav {
    position: sticky;
    height: 60px;
    align-items: center;
    top: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-around;
    padding: 1rem;
    z-index: 100;
    font-size: 1.5rem;
}

.glass-nav a {
    color: #fff;
    text-decoration: none;
}

/* Hamburger styles */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 35px;
    height: 3px;
    background: #ffa500;
    border-radius: 3px;
}

/* Layout container */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.2rem;
}

/* Nav links */
.nav-links {
    display: flex;
    gap: 1rem;
}
    
canvas { position: absolute; top: 0; left: 0; z-index: -1; }
.parallax {
    height: 400px;
    background: url('images/powerplant.png') center/cover fixed no-repeat;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* === Glassmorphism Card === */
.glass-card {
    max-width: 80%;
    width: 50%;
    margin: auto;
    padding: 1.5rem;
    border-radius: 20px;
    backdrop-filter: blur(15px);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    font-size: 18px;
    font-weight: 600;
    color: #0f2027;
}

/* === Social Buttons === */
.social-links {
    padding: 25px;
}

.socials-container{
    display: flex;
    gap: 40px;
    justify-content: center;
    align-items: center;
    padding: 50px;
}

.socials-container a{
    background-color: white;
    padding: 1em;
    border-radius: 50%;
    height: 64px;
    width: 64px;
    box-sizing: border-box;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
}

.socials-container a svg{
    height: 32px;
}

.socials-container a::before{
    content: attr(data-social);
    position: absolute;
    background-color: var(--accent-color);
    color: white;
    text-decoration: none;
    padding: 0.5em 1em;
    border-radius: 100px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
    transform: translateY(-30px) rotate(25deg);
    opacity: 0;
    transition: 200ms cubic-bezier(.42,0,.44,1.68);
}

.socials-container a:hover{
    background-color: var(--accent-color);
    fill: white;
}

.socials-container a::after{
    content: '';
    position: absolute;
    height: 0;
    width: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 10px solid var(--accent-color);
    transform: translateY(0) rotate(25deg);
    opacity: 0;
    transition: 200ms cubic-bezier(.42,0,.44,1.68);
}

.socials-container a:hover::before{
    transform: translateY(-65px) rotate(0);
    opacity: 1;
}

.socials-container a:hover::after{
    transform: translateY(-42px) rotate(0);
    opacity: 1;
}

/* === Battlemetrics === */
.battlemetric-scorecard-horizontal {
    position: relative;
    align-items: center;
    padding: 2rem;
    display: initial;
}

.battlemetric-scorecard-vertical {
    position: relative;
    align-items: center;
    display: none;
}

/* === Image Reveal Gallery === */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    max-width: calc(400px * 3 + 20px * 2); /* 3 items + 2 gaps */
    margin: auto;
    gap: 20px;
    justify-content: center;
}


.gallery > div {
    position: relative;
    overflow: hidden;
}

.gallery img {
    width: 100%;
    max-width: 450px;
    height: auto;
    transition: all 0.4s ease-in-out;
    filter: grayscale(100%);
}

.gallery img:hover {
    filter: grayscale(0%) contrast(120%);
    transform: scale(1.05);
    cursor: pointer;
}

.img-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 2vh;
    z-index: 1;
}

.map {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-radius: 30px;
    padding: 20px;
    background: #2c2c2c;
    max-width: 1000px;
    margin: 0 auto;
    gap: 20px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.map h1 {
    width: 100%;
    text-align: center;
    font-size: 24px;
    margin-bottom: 20px;
    grid-column: 1 / -1;
}

.map-table {
    border-collapse: collapse;
    width: 100%;
    min-width: 400px;
    background: #45434b;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.map-table th {
    font-weight: 600;
    font-size: 20px;
}

.map-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #ddd;
    border-top: 1px solid #ddd;
    font-size: 16px;
}

.map img {
    max-width: 500px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.map-content {
    display: flex;
    gap: 20px;
    width: 100%;
}

/*=== Settings Cards ===*/
.card {
    perspective: 1000px;
    cursor: pointer;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(375px, 1fr));
    gap: 20px;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 350px;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    pointer-events: none;
}

.card:hover .card-inner,
.card.flipped .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    overflow: hidden;
}

.card-front {
    background: #2c2c2c;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.card-front img {
    width: auto;
    height: 85%;
    object-fit: cover;
}

.card-front h3 {
    margin: 15px 0;
}

.card-back {
    background: #2c2c2c;
    color: #fff;
    transform: rotateY(180deg);
    padding: 5px;
}

.card-back ul {
    list-style: none;
    padding: 0;
}

.card-back li {
    margin: 5px 0;
}

.stripe_billing_btn {
    align-items: center;
    appearance: none;
    background-color: #2c2c2c;
    border-radius: 24px;
    border-style: none;
    box-shadow: rgba(0, 0, 0, .2) 0 3px 5px -1px,rgba(0, 0, 0, .14) 0 6px 10px 0,rgba(0, 0, 0, .12) 0 1px 18px 0;
    box-sizing: border-box;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    fill: currentcolor;
    height: 48px;
    justify-content: center;
    line-height: normal;
    max-width: 100%;
    overflow: visible;
    padding: 2px 24px;
    position: relative;
    text-align: center;
    text-transform: none;
    transition: box-shadow 280ms cubic-bezier(.4, 0, .2, 1),opacity 15ms linear 30ms,transform 270ms cubic-bezier(0, 0, .2, 1) 0ms;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    width: auto;
    will-change: transform,opacity;
    z-index: 0;
}

.stripe_billing_btn:hover {
    background: #ffa500;
    color: #2c2c2c;
}
  
.stripe_billing_btn:active {
    box-shadow: 0 4px 4px 0 #424242, 0 8px 12px 6px rgb(60 64 67 / 15%);
    outline: none;
}
  
.stripe_billing_btn:focus {
    outline: none;
    border: 2px solid #2c2c2c;
}
  
.stripe_billing_btn:not(:disabled) {
    box-shadow: rgba(60, 64, 67, .3) 0 1px 3px 0, rgba(60, 64, 67, .15) 0 4px 8px 3px;
}
  
.stripe_billing_btn:not(:disabled):hover {
    box-shadow: rgba(60, 64, 67, .3) 0 2px 3px 0, rgba(60, 64, 67, .15) 0 6px 10px 4px;
}
  
.stripe_billing_btn:not(:disabled):focus {
    box-shadow: rgba(60, 64, 67, .3) 0 1px 3px 0, rgba(60, 64, 67, .15) 0 4px 8px 3px;
}
  
.stripe_billing_btn:not(:disabled):active {
    box-shadow: rgba(60, 64, 67, .3) 0 4px 4px 0, rgba(60, 64, 67, .15) 0 8px 12px 6px;
}
  
.stripe_billing_btn:disabled {
    box-shadow: rgba(60, 64, 67, .3) 0 1px 3px 0, rgba(60, 64, 67, .15) 0 4px 8px 3px;
}

.stripe-btns {
    display: flex;
    justify-content: space-around;
    justify-items: center;
    padding-left: 15%;
    padding-right: 15%;
    padding-top: 15px;
    padding-bottom: 15px;
    font-size: 0.8em;
    min-width: 196px;
}

footer {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: #2c2c2c;
    position: fixed;
    width: 100%;
    height: 50px;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1em;
    text-align: center;
    font-size: 0.8em;
    color: white;
    z-index: 1000;
}

#backToTop {
    position: fixed;
    bottom: 60px;
    right: 10px;
    z-index: 1000;
    background-color: #2c2c2c;
    color: #ffa500;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
    transition: background-color 0.3s ease;
}

#backToTop:hover {
    background-color: #ffa500;
    color: #2c2c2c;
}


@media screen and (max-width: 800px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: #2c2c2c;
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        padding: 1rem 0;
        display: none;
    }

    .nav-links.show {
        display: flex;
    }
    
    canvas { position: absolute; top: 0; left: 0; z-index: -1; }
    .parallax {
        background-size: cover;
        background-position: center center;
        background-attachment: scroll;
    }

    .battlemetric-scorecard-horizontal {
        display: none;
    }

    .battlemetric-scorecard-vertical {
        display: initial;
    }

    h1 {
        font-size: 1.5rem;
        font-weight: bold;
    }

    .glass-card {
        padding: 1rem;
        width: 95%;
        font-size: 14px;
        font-weight: 400;
    }

    .socials-container {
        gap: 15px;
    }

    .socials-container a {
        height: 48px;
        width: 48px;
        padding: 0.75em;
    }

    .socials-container a svg {
        height: 24px;
        width: 24px;
    }

    .gallery img {
        filter: grayscale(0%);
        width: 90%;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .stripe-btns {
        display: flow-root;
    }

    .stripe_custom-donation {
        padding-top: 20px;
    }

    .stripe_billing_btn {
        min-width: 196px;
    }
   
    .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .image-container img {
        max-width: 100%;
    }
}