@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    --bg: #08090c;
    --bg-light: #101218;
    --card: #12141a;
    --card-hover: #181b23;
    --text: #f5f5f5;
    --muted: #9499a6;
    --accent: #ff3b30;
    --accent-2: #ffcc00;
    --border: rgba(255,255,255,0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

section {
    scroll-margin-top: 80px;
}


/* =========================
   NAVBAR
========================= */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 76px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 7%;

    background: rgba(8, 9, 12, 0.8);
    backdrop-filter: blur(18px);

    border-bottom: 1px solid var(--border);

    z-index: 1000;
}

.logo {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -1px;
}

.logo span {
    color: var(--accent);
}

.logo-cube {
    margin-right: 8px;
    color: white;
}

.navbar nav {
    display: flex;
    gap: 28px;
}

.navbar nav a {
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    transition: 0.3s;
}

.navbar nav a:hover {
    color: white;
}

.menu-btn {
    display: none;

    background: none;
    border: none;

    color: white;
    font-size: 25px;
    cursor: pointer;
}


/* =========================
   HERO
========================= */

.hero {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 120px 8% 80px;

    position: relative;
    overflow: hidden;

    background:
        radial-gradient(
            circle at 80% 50%,
            rgba(255, 59, 48, 0.12),
            transparent 35%
        );
}

.hero-content {
    width: 55%;
    position: relative;
    z-index: 2;
}

.eyebrow {
    color: var(--accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 3px;
    margin-bottom: 18px;
}

.hero h1 {
    font-size: clamp(48px, 7vw, 92px);
    line-height: 0.98;
    letter-spacing: -5px;
    margin-bottom: 30px;
}

.hero h1 span,
.section-heading span,
.contact-box h2 span {
    color: var(--accent);
}

.hero-text {
    color: var(--muted);
    max-width: 550px;
    font-size: 17px;
    margin-bottom: 35px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 14px 24px;
    border-radius: 7px;

    font-size: 13px;
    font-weight: 800;

    transition: 0.3s;
}

.btn.primary {
    background: var(--accent);
    color: white;
}

.btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(255, 59, 48, 0.3);
}

.btn.secondary {
    border: 1px solid var(--border);
    color: white;
}

.btn.secondary:hover {
    background: white;
    color: black;
}

.hero-mini-stats {
    display: flex;
    gap: 45px;
    margin-top: 55px;
}

.hero-mini-stats div {
    display: flex;
    flex-direction: column;
}

.hero-mini-stats strong {
    font-size: 25px;
}

.hero-mini-stats span {
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
}


/* =========================
   CUBE
========================= */

.hero-cube {
    width: 38%;
    height: 500px;

    display: flex;
    align-items: center;
    justify-content: center;

    perspective: 900px;
}

.rubik-cube {
    width: 230px;
    height: 230px;

    position: relative;

    transform-style: preserve-3d;

    transform:
        rotateX(-20deg)
        rotateY(-35deg)
        rotateZ(4deg);

    animation: cubeFloat 5s ease-in-out infinite;
}

.cube-face {
    position: absolute;

    width: 230px;
    height: 230px;

    padding: 7px;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;

    background: #080808;

    border-radius: 10px;

    border: 5px solid #050505;
}

.cube-face i {
    display: block;
    border-radius: 5px;
    border: 2px solid rgba(0,0,0,0.5);
}

.front {
    transform: translateZ(115px);
}

.front i {
    background: #e63228;
}

.right {
    transform:
        rotateY(90deg)
        translateZ(115px);
}

.right i {
    background: #f4f4f4;
}

.top {
    transform:
        rotateX(90deg)
        translateZ(115px);
}

.top i {
    background: #ffd600;
}

@keyframes cubeFloat {

    0%, 100% {
        transform:
            rotateX(-20deg)
            rotateY(-35deg)
            translateY(0);
    }

    50% {
        transform:
            rotateX(-20deg)
            rotateY(325deg)
            translateY(-25px);
    }

}


/* Background particles */

.cube-bg {
    position: absolute;
    color: rgba(255,255,255,0.04);

    font-size: 100px;

    animation: backgroundFloat 8s ease-in-out infinite;
}

.cube-one {
    left: 5%;
    top: 20%;
}

.cube-two {
    right: 10%;
    top: 15%;
}

.cube-three {
    right: 35%;
    bottom: 10%;
}

@keyframes backgroundFloat {

    50% {
        transform: translateY(-30px) rotate(20deg);
    }

}


/* =========================
   SECTIONS
========================= */

.section {
    padding: 120px 8%;
}

.section-heading {
    margin-bottom: 60px;
}

.section-heading.center {
    text-align: center;
}

.section-heading h2 {
    font-size: clamp(35px, 5vw, 58px);
    line-height: 1;
    letter-spacing: -3px;
}


/* =========================
   ABOUT
========================= */

.about {
    background: var(--bg-light);
}

.about-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    min-height: 450px;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            135deg,
            rgba(255,59,48,.2),
            transparent
        );

    border: 1px solid var(--border);
    border-radius: 15px;
}

.profile-placeholder {
    width: 250px;
    height: 250px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #171920;

    border: 1px solid var(--border);
}

.profile-placeholder span {
    font-size: 75px;
}

.profile-placeholder p {
    color: var(--accent);
    font-weight: 900;
    letter-spacing: 3px;
    font-size: 11px;
}

.about-content h3 {
    font-size: 32px;
    margin-bottom: 20px;
}

.about-content > p {
    color: var(--muted);
    margin-bottom: 20px;
    max-width: 650px;
}

.about-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 35px;
}

.about-details div {
    padding: 18px;

    border: 1px solid var(--border);
    border-radius: 8px;

    background: var(--card);
}

.about-details span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.about-details strong {
    font-size: 14px;
}


/* =========================
   STATS
========================= */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.stat-card {
    padding: 30px;

    background: var(--card);

    border: 1px solid var(--border);
    border-radius: 12px;

    transition: 0.3s;
}

.stat-card:hover {
    transform: translateY(-7px);
    background: var(--card-hover);
}

.stat-card.featured {
    border-color: rgba(255,59,48,.5);
}

.event-icon {
    display: inline-flex;

    padding: 8px 10px;

    border-radius: 5px;

    background: #20232c;

    color: var(--accent);

    font-size: 12px;
    font-weight: 900;

    margin-bottom: 25px;
}

.stat-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.time {
    font-size: 42px;
    font-weight: 900;
    letter-spacing: -2px;
}

.time span {
    color: var(--accent);
    font-size: 18px;
}

.stat-card p {
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
}


/* =========================
   TIMELINE
========================= */

.timeline {
    max-width: 850px;
    margin: auto;

    position: relative;
}

.timeline::before {
    content: "";

    position: absolute;

    left: 90px;
    top: 0;
    bottom: 0;

    width: 1px;

    background: var(--border);
}

.timeline-item {
    display: grid;
    grid-template-columns: 70px 1fr;

    gap: 50px;

    position: relative;

    padding-bottom: 55px;
}

.timeline-date {
    color: var(--accent);
    font-weight: 800;
    font-size: 14px;
}

.timeline-content {
    position: relative;
}

.timeline-content h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.timeline-content p {
    color: var(--muted);
}

.timeline-dot {
    position: absolute;

    left: 84px;
    top: 3px;

    width: 13px;
    height: 13px;

    border-radius: 50%;

    background: var(--accent);

    box-shadow:
        0 0 0 5px var(--bg),
        0 0 20px rgba(255,59,48,.5);
}


/* =========================
   COMPETITIONS
========================= */

.competitions {
    background: var(--bg-light);
}

.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
}

th {
    text-align: left;

    padding: 17px;

    font-size: 11px;
    color: var(--muted);

    text-transform: uppercase;
    letter-spacing: 1px;

    border-bottom: 1px solid var(--border);
}

td {
    padding: 22px 17px;

    font-size: 13px;

    border-bottom: 1px solid var(--border);
}

tbody tr {
    transition: 0.3s;
}

tbody tr:hover {
    background: rgba(255,255,255,.03);
}

td:nth-child(4) {
    color: var(--accent);
    font-weight: 800;
}


/* =========================
   COLLECTION
========================= */

.collection-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.cube-card {
    padding: 30px;

    text-align: center;

    background: var(--card);

    border: 1px solid var(--border);

    border-radius: 12px;

    transition: 0.3s;
}

.cube-card:hover {
    transform: translateY(-8px);
    background: var(--card-hover);
}

.cube-visual {
    font-size: 70px;
    margin-bottom: 20px;

    filter: drop-shadow(0 10px 15px rgba(0,0,0,.5));
}

.cube-card h3 {
    margin-bottom: 5px;
}

.cube-card p {
    color: var(--muted);
    font-size: 13px;
}

.cube-card span {
    display: block;

    margin-top: 15px;

    font-size: 10px;

    color: var(--accent);

    text-transform: uppercase;
    letter-spacing: 1px;
}


/* =========================
   QUOTE
========================= */

.quote-section {
    padding: 140px 8%;

    text-align: center;

    background:
        radial-gradient(
            circle,
            rgba(255,59,48,.1),
            transparent 55%
        );
}

.quote {
    max-width: 850px;
    margin: auto;
}

.quote-mark {
    display: block;

    font-size: 80px;

    color: var(--accent);

    line-height: .5;
}

.quote p {
    font-size: clamp(25px, 4vw, 44px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -1px;
}

.quote-author {
    display: block;

    margin-top: 30px;

    color: var(--muted);

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 3px;
}


/* =========================
   CONTACT
========================= */

.contact {
    padding-top: 80px;
}

.contact-box {
    padding: 65px;

    display: grid;
    grid-template-columns: 1fr .7fr;
    gap: 70px;

    border-radius: 15px;

    background:
        linear-gradient(
            135deg,
            #181a21,
            #101116
        );

    border: 1px solid var(--border);
}

.contact-box h2 {
    font-size: clamp(38px, 5vw, 60px);
    line-height: 1;
    letter-spacing: -3px;

    margin-bottom: 25px;
}

.contact-box p {
    color: var(--muted);
    max-width: 550px;
}

.contact-links {
    display: flex;
    flex-direction: column;
    justify-content: center;

    gap: 18px;
}

.contact-links a {
    padding: 15px;

    border: 1px solid var(--border);
    border-radius: 7px;

    font-size: 13px;

    transition: 0.3s;
}

.contact-links a:hover {
    background: white;
    color: black;
}

.contact-links span {
    margin-right: 10px;
}


/* =========================
   FOOTER
========================= */

footer {
    padding: 35px 8%;

    display: flex;
    justify-content: space-between;
    align-items: center;

    border-top: 1px solid var(--border);

    color: var(--muted);

    font-size: 11px;
}

.footer-logo {
    color: white;
    font-size: 17px;
    font-weight: 900;
}

.footer-logo span {
    color: var(--accent);
}

footer a {
    color: white;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1000px) {

    .navbar nav {
        position: absolute;

        top: 76px;
        left: 0;

        width: 100%;

        display: none;
        flex-direction: column;

        padding: 25px;

        background: #0b0c10;

        border-bottom: 1px solid var(--border);
    }

    .navbar nav.active {
        display: flex;
    }

    .menu-btn {
        display: block;
    }

    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        width: 100%;
    }

    .hero-text {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons,
    .hero-mini-stats {
        justify-content: center;
    }

    .hero-cube {
        width: 100%;
        height: 400px;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .collection-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-box {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 600px) {

    .section {
        padding: 80px 6%;
    }

    .hero {
        padding: 120px 6% 50px;
    }

    .hero h1 {
        letter-spacing: -3px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-mini-stats {
        gap: 20px;
        flex-wrap: wrap;
    }

    .hero-cube {
        transform: scale(.75);
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .collection-grid {
        grid-template-columns: 1fr;
    }

    .about-details {
        grid-template-columns: 1fr;
    }

    .about-image {
        min-height: 350px;
    }

    .contact-box {
        padding: 35px 25px;
    }

    .timeline::before {
        left: 10px;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 10px;
        padding-left: 35px;
    }

    .timeline-dot {
        left: 4px;
    }

    footer {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}