/* ================================
   RESET & GLOBAL
================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: system-ui, Arial, sans-serif;
    background: #0b0e13;
    color: #eaeaea;
    scroll-snap-type: y mandatory;
    -webkit-text-size-adjust: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ================================
   FONT AWESOME
================================ */
.fa, .fa-solid, .fa-regular {
    font-family: "Font Awesome 7 Free" !important;
}

.fa-brands {
    font-family: "Font Awesome 7 Brands" !important;
}

/* ================================
   HERO
================================ */
.hero {
    background:
        linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.65)),
        url("bg-hero.webp") center/cover no-repeat fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.85;
}

/* ================================
   SECTIONS
================================ */
.section,
.section-dark {
    min-height: 100vh;
    max-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 120px 0;
}

.section {
    padding: 120px 20px;
    align-items: center;
    box-sizing: border-box;
}

.section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 12px;
    color: #e6ebff;
}

.ecosystem-text {
    max-width: 800px;
    margin: auto;
    text-align: center;
    margin-bottom: 60px;
    color: #b8c0ff;
    line-height: 1.6;
    font-size: 1.1rem;
    opacity: 0.85;
}

.container {
    max-width: 100%;
    padding: 0 16px;
}

/* ================================
   BACKGROUNDS & PROJECT SECTIONS
================================ */
:root {
    --overlay: linear-gradient(rgba(15,15,15,0.15), rgba(15,15,15,0.15));
}

section {
    background-image: var(--bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#taurus     { --bg: url("bg-taurus.webp"); }
#leo        { --bg: url("bg-leo.webp"); }
#leo-webapp { --bg: url("bg-leo-webapp.webp"); }
#libra      { --bg: url("bg-libra.webp"); }
#ecosystem  { --bg: url("bg-ecosystem.webp"); }
#timeline   { --bg: url("bg-timeline.webp"); }
#say        { --bg: url("bg-say.webp"); }

/* ================================
   GRID LAYOUTS
================================ */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: auto;
}

.features-single {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
    margin: auto;
}

/* ================================
   CARDS
================================ */
.step-card {
    background: #121a2f;
    color: #e6ebff;
    padding: 24px;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.step-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}

.step-date {
    font-size: 0.85rem;
    color: #f5c26b;
    margin-bottom: 6px;
}

.step-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #4da3ff;
    margin-bottom: 12px;
}

.step-content {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #d6dcff;
}

.step-content ul {
    padding-left: 18px;
    margin: 10px 0;
}

.step-content li {
    margin-bottom: 6px;
}

.feature-box {
    background: #1a1a1a;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.feature-box h3 {
    margin-top: 0;
    color: #00d4ff;
}

/* ================================
   TESTIMONIALS
================================ */
.testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: auto;
}

.testimonial {
    background: #1e1e1e;
    padding: 20px;
    border-radius: 10px;
    font-style: italic;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* ================================
   BUTTONS
================================ */
.btn-row {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn, .my-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s;
}

.btn {
    background: #1f6bff;
    color: #fff;
}

.btn.outline {
    background: transparent;
    border: 2px solid #1f6bff;
}

.my-btn {
    background: linear-gradient(120deg, #0d6efd, #6610f2);
    color: #fff;
}

.my-btn:hover {
    background: linear-gradient(120deg, #6610f2, #0d6efd);
    transform: scale(1.05);
}

/* ================================
   IMAGE ICONS
================================ */
.img-icon,
.img-icon-header {
    border: 0;
    display: inline-block;
    outline: none;
    vertical-align: middle;
}

.img-icon-header {
    width: 48px;
    height: 48px;
}

/* ================================
   ANIMATION & EFFECTS
================================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ================================
   VIDEO SECTION
================================ */
.video-section {
    position: relative;
    overflow: hidden;
}

.video-section > :not(.bg-video) {
    position: relative;
    z-index: 3;
    color: #fff;
}

.video-section .bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: contrast(1.1) brightness(1.05);
}

.video-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--overlay, rgba(15,8,8,0.45));
    z-index: 2;
}

.video-section .content {
    position: relative;
    z-index: 3;
    color: #fff;
}

/* ================================
   ANIME RIGHT & TOOLTIP
================================ */
.anime-right {
    position: fixed;
    right: 10px;
    bottom: 0;
    width: 120px;
    height: 120px;
    z-index: 1000;
}

.anime-right img {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
}

.tooltip-text {
    visibility: hidden;
    background-color: black;
    color: #fff;
    text-align: center;
    padding: 8px 12px;
    border-radius: 6px;
    position: absolute;
    bottom: 100%;
    right: 0;
    left: auto;
    transform: translateX(0);
    opacity: 0;
    transition: opacity 0.3s;
    white-space: normal;
    min-width: 180px;
    font-size: 10px;
    line-height: 1.4em;
}

.anime-right:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* ================================
   BACK TO TOP & MUSIC BUTTON
================================ */
#backToTopBtn,
#musicBtn {
    position: fixed;
    left: 20px;
    z-index: 99;
    font-size: 16px;
    border: none;
    outline: none;
    color: white;
    cursor: pointer;
    padding: 12px 18px;
    border-radius: 8px;
    transition: background-color 0.3s;
}

#backToTopBtn {
    display: none;
    bottom: 80px;
    background-color: #1a73e8;
}

#backToTopBtn:hover {
    background-color: #0c54b8;
}

#musicBtn {
    display: flex;
    bottom: 20px;
    background-color: #1a73e8;
}

#musicBtn.paused {
    background: #e74c3c;
}

/* ================================
   PRELOADER
================================ */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
        url("bg-hero.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

.spinner-wrapper {
    position: relative;
    width: 60px;
    height: 60px;
}

.spinner {
    position: absolute;
    top: 0;
    left: 0;
    width: 60px;
    height: 60px;
    border: 10px solid rgba(253, 244, 204, 0);
    border-top: 10px solid #3900fd;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.spinner-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

body.loaded #preloader {
    display: none;
}

/* ================================
   RESPONSIVE BREAKPOINTS
================================ */
@media (max-width: 1024px) {
    .steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    body {
        font-size: 0.95rem;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .bg-video {
        display: none;
    }
}

@media (max-width: 640px) {
    .steps {
        grid-template-columns: 1fr;
    }
}
