/* About Page Specific Overrides & Animations */
body {
    background-color: #0c1930;
    color: #ebebeb;
    height: auto;
    overflow-y: auto;
    overflow-x: hidden;
}

.about-hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 5vh;
    /* Move content up */
    text-align: center;
    position: relative;
    background: radial-gradient(circle at center, rgba(0, 212, 255, 0.05) 0%, transparent 70%);
    padding-bottom: 10vh;
    /* Balance out the move up */
}

.balance-logo-wrap {
    width: 360px;
    /* ~2x bigger than 180px */
    margin-bottom: 1.5rem;
    position: relative;
    animation: float 4s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0);
    }

    50% {
        transform: translateY(-10px) rotate(0);
    }
}

#particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    /* Behind text (z-index 1+) but above background */
    pointer-events: none;
    /* Let events pass through to text if needed, but we capture mouse on window */
}

.about-hero h1,
.about-hero p,
.balance-logo-wrap {
    position: relative;
    z-index: 2;
    /* Ensure content stays above particles */
}

.about-hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, #ebebeb, #00d4ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.slogan {
    font-size: 1.2rem;
    letter-spacing: 3px;
    opacity: 0.8;
    font-weight: 500;
    text-transform: uppercase;
}

/* The Balance Line */
.page-divider {
    position: fixed;
    left: 50.2%;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, transparent, #00d4ff, transparent);
    opacity: 0.2;
    z-index: -1;
}

.content-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 40px;
    display: flex;
    align-items: center;
    gap: 60px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease-out;
}

.content-section.reveal {
    opacity: 1;
    transform: translateY(0);
}

.section-text {
    flex: 1;
}

.section-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

.content-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #00d4ff;
}

.content-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    text-align: justify;
}

/* Glass Cards for Values */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.value-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 212, 255, 0.1);
    padding: 40px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    text-align: center;
    transition: all 0.3s ease;
}

.value-card:hover {
    border-color: #00d4ff;
    background: rgba(0, 212, 255, 0.05);
    transform: translateY(-10px);
}

.value-card i {
    font-size: 2.5rem;
    color: #00d4ff;
    margin-bottom: 1.5rem;
    display: block;
}

.value-card h3 {
    margin-bottom: 1rem;
    text-transform: uppercase;
}

/* Responsive */
/* Responsive */
@media (max-width: 992px) {
    .content-section {
        flex-direction: column !important;
        /* Override inline styles */
        text-align: center;
        padding: 60px 20px;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .about-hero h1 {
        font-size: 2.5rem;
    }

    .page-divider {
        display: none;
    }
}

.btn-back {
    position: fixed;
    top: 30px;
    left: 30px;
    z-index: 100;
    background: rgba(12, 25, 48, 0.8);
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: #ebebeb;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

@media screen and (max-width: 768px) {
    .btn-back {
        top: 20px;
        left: 20px;
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .about-hero {
        padding-top: 100px;
        justify-content: flex-start;
    }
}

.btn-back:hover {
    border-color: #00d4ff;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

/* =========================================
   PHYSICS BALANCE ANIMATION 
   ========================================= */
.balance-container {
    width: 300px;
    height: 300px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.balance-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 50%;
    animation: ring-pulse 4s ease-in-out infinite alternate;
}

.balance-system {
    position: relative;
    width: 260px;
    height: 40px;
    /* Height for the "wobble" space */
    display: flex;
    justify-content: center;
    align-items: center;
    animation: system-rock 6s ease-in-out infinite;
    transform-origin: center center;
}

.balance-beam {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00d4ff, transparent);
    position: absolute;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.balance-pivot {
    width: 12px;
    height: 12px;
    background: #0c1930;
    border: 2px solid #00d4ff;
    border-radius: 50%;
    position: absolute;
    z-index: 10;
    box-shadow: 0 0 15px #00d4ff;
}

.balance-ball {
    position: absolute;
    border-radius: 50%;
    bottom: 50%;
    /* Sit on the line (vertically centered on the 2px line) */
    transform: translateY(50%);
}

.ball-white {
    width: 30px;
    height: 30px;
    background: #ebebeb;
    left: 20%;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.6);
    animation: ball-counter-rotate 6s ease-in-out infinite;
    /* Subtle shift to simulate weight */
}

.ball-blue {
    width: 50px;
    height: 50px;
    background: #00d4ff;
    right: 20%;
    box-shadow: 0 0 35px rgba(0, 212, 255, 0.6);
    animation: ball-counter-rotate 6s ease-in-out infinite;
}

/* 
 * PHYSICS ANIMATION KEYFRAMES
 * Creates the feel of weight shifting
 */
@keyframes system-rock {

    0%,
    100% {
        transform: rotate(-12deg);
    }

    50% {
        transform: rotate(12deg);
    }
}

@keyframes ball-counter-rotate {

    0%,
    100% {
        transform: translateY(50%) rotate(12deg);
        /* Keep balls "upright" relative to gravity if needed, or just let them stick */
    }

    50% {
        transform: translateY(50%) rotate(-12deg);
    }
}

@keyframes ring-pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
        border-color: rgba(0, 212, 255, 0.2);
    }

    100% {
        transform: scale(1.05);
        opacity: 0.8;
        border-color: rgba(0, 212, 255, 0.4);
    }
}

/* Duality Animation (About Page) */
.duality-anim {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.duality-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: rotate-ring 20s linear infinite;
}

.duality-core {
    position: absolute;
    width: 24px;
    height: 24px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    animation: pulse-core 2s ease-in-out infinite;
    z-index: 2;
}

.duality-orb {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-top: -10px;
    margin-left: -10px;
}

/* Orbits */
.orb-1 {
    background: #00d4ff;
    box-shadow: 0 0 20px #00d4ff;
    animation: orbit-1 4s linear infinite;
}

.orb-2 {
    background: #fff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
    animation: orbit-2 4s linear infinite;
}

/* Keyframes */
@keyframes rotate-ring {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse-core {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.4;
    }
}

@keyframes orbit-1 {
    from {
        transform: rotate(0deg) translateX(120px) rotate(0deg);
    }

    to {
        transform: rotate(360deg) translateX(120px) rotate(-360deg);
    }
}

@keyframes orbit-2 {
    from {
        transform: rotate(180deg) translateX(120px) rotate(-180deg);
    }

    to {
        transform: rotate(540deg) translateX(120px) rotate(-540deg);
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    z-index: 10;
    cursor: pointer;
}

.scroll-indicator:hover {
    opacity: 1;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    position: relative;
    margin-bottom: 5px;
}

.wheel {
    width: 4px;
    height: 6px;
    background: #00d4ff;
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 1.5s infinite;
}

.arrow-down {
    width: 10px;
    height: 10px;
    border-right: 2px solid rgba(255, 255, 255, 0.3);
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    transform: rotate(45deg);
    animation: scroll-arrow 1.5s infinite;
    margin-top: 5px;
}

@keyframes scroll-wheel {
    0% {
        top: 6px;
        opacity: 1;
    }

    100% {
        top: 20px;
        opacity: 0;
    }
}

@keyframes scroll-arrow {
    0% {
        opacity: 0;
        transform: rotate(45deg) translate(-5px, -5px);
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: rotate(45deg) translate(5px, 5px);
    }
}

/* Logo Story Section */
.logo-story-section {
    display: block !important;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    color: #00d4ff;
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #00d4ff;
    box-shadow: 0 0 10px #00d4ff;
}

.story-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 2rem;
}

.story-card {
    background: rgba(12, 25, 48, 0.6);
    border: 1px solid rgba(0, 212, 255, 0.1);
    padding: 40px 30px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
}

.story-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.story-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 212, 255, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.story-card:hover::before {
    opacity: 1;
}

.story-card .icon-wrapper {
    width: 80px;
    height: 80px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.5rem auto;
    border: 1px solid rgba(0, 212, 255, 0.2);
    transition: all 0.4s ease;
}

.story-card:hover .icon-wrapper {
    background: #00d4ff;
    box-shadow: 0 0 20px #00d4ff;
    transform: scale(1.1);
    border-color: transparent;
}

.story-card i {
    font-size: 2rem;
    color: #00d4ff;
    transition: color 0.4s ease;
}

.story-card:hover i {
    color: #0c1930;
}

.story-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.story-card .subtitle {
    font-size: 0.9rem;
    color: #00d4ff;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.story-card p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    text-align: center;
    /* Override justify from generic p */
}

@media (max-width: 900px) {
    .story-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Logo Display in Story Section */
.logo-display {
    text-align: center;
    margin-top: 1rem;
    animation: float 4s ease-in-out infinite;
}

.logo-display img {
    width: 180px;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.4));
    transition: all 0.3s ease;
}

.logo-display:hover img {
    filter: drop-shadow(0 0 40px rgba(0, 212, 255, 0.8));
    transform: scale(1.05);
}

/* Enhancements for Story Cards to make circles look 'filled' */
.story-card .icon-wrapper {
    background: rgba(0, 212, 255, 0.1);
    /* Fallback */
    background: radial-gradient(circle, rgba(0, 212, 255, 0.3) 0%, rgba(12, 25, 48, 0.9) 100%);
    border: 1px solid rgba(0, 212, 255, 0.6);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2), inset 0 0 30px rgba(0, 212, 255, 0.2);
}

/* Ensure icons are visible and glowing */
.story-card i {
    color: #fff;
    text-shadow: 0 0 15px rgba(0, 212, 255, 1);
    font-size: 2.2rem;
}