:root {
    --red: #e62b1e;
    --bg: #0a0a0a;
    --panel: #111;
    --muted: #aaa;
}

html {
    scroll-behavior: smooth;
}

/* General */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background-color: var(--bg);
    color: #fff;
    line-height: 1.5;
}

a {
    color: inherit;
}

.reveal {
    opacity: 0;
    transform: translateY(26px);
}

.reveal.is-visible {
    animation: fadeUp 0.9s ease 0.15s forwards;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(26px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* NAVBAR */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 40px;
    background: #000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.navbar .logo {
    font-weight: 700;
    font-size: 18px;
}

.navbar .logo span {
    color: var(--red);
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 22px;
    margin: 0;
    padding: 0;
}

.navbar ul li a {
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
}

.navbar ul li a:hover {
    color: var(--red);
}

/* HERO */
.hero {
    padding: 60px 40px;
    display: flex;
    gap: 40px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    min-height: 500px;
    background-image: url('red-lines.png');
    background-repeat: no-repeat;
    background-position: right center;
    background-size: 420px;
    position: relative;
    overflow: hidden;
}

.hero-text {
    max-width: 640px;
    flex: 1;
    min-width: 280px;
    animation: fadeUp 0.9s ease 0.2s forwards;
}

.hero h1 {
    margin: 0 0 8px 0;
    font-size: 36px;
    line-height: 1.05;
    font-weight: 800;
}

.hero h1 span {
    background: linear-gradient(120deg, #eb0028, #ff6b6b, #eb0028);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: hueShift 10s linear infinite;
}

.hero .event-subline {
    margin: 0 0 20px 0;
    font-size: 13px;
    color: var(--muted);
    font-weight: 500;
}

.hero .event-subline .x-red {
    color: var(--red);
    font-weight: 700;
    margin-right: 6px;
}

.hero h2 {
    margin: 0 0 20px 0;
    color: var(--red);
    font-size: 22px;
    font-weight: 700;
}

.hero p {
    margin: 0 0 24px 0;
    color: #ddd;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 8px;
}

.hero-buttons button {
    padding: 12px 26px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 15px;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.2s ease;
}

.hero-buttons .buy {
    background: var(--red);
    color: #fff;
}

.hero-buttons .learn {
    background: #222;
    color: #fff;
}

.hero-buttons button::before {
    content: "";
    position: absolute;
    inset: -120% -20%;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.35) 50%, transparent 100%);
    transform: rotate(10deg);
    animation: sheen 2.6s linear infinite;
}

.hero-buttons button:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 12px 28px rgba(0,0,0,0.35);
}

.hero-buttons button:active {
    transform: translateY(0);
    box-shadow: none;
}

.hero img {
    max-width: 380px;
    width: 100%;
    height: auto;
    margin-top: 6px;
    flex: 0 0 auto;
    animation: floatY 7s ease-in-out infinite;
    filter: drop-shadow(0 12px 24px rgba(0,0,0,0.35));
}

.hero-accents {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-accents .orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(22px);
    opacity: 0.6;
    animation: pulseGlow 7s ease-in-out infinite alternate;
}

.hero-accents .orb-1 {
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(235,0,40,0.55), transparent 65%);
    top: -40px;
    left: -40px;
    animation-delay: 0.4s;
}

.hero-accents .orb-2 {
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(255,107,107,0.4), transparent 70%);
    bottom: 12%;
    left: 28%;
    animation-delay: 1.2s;
}

.hero-accents .orb-3 {
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(255,255,255,0.18), transparent 70%);
    top: 6%;
    right: -60px;
    animation-delay: 0.8s;
}

/* WHAT IS TEDx SECTION */
.tedx-section {
    padding: 80px 40px;
    background: var(--panel) url('circle-shadow.png') no-repeat left center;
    background-size: 600px;
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.tedx-logo {
    width: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tedx-logo img {
    max-width: 320px;
    height: auto;
}

.tedx-text {
    max-width: 640px;
}

.tedx-text h2 {
    font-size: 28px;
    margin: 0 0 12px 0;
}

.tedx-text h2 span {
    color: var(--red);
}

.tedx-text p {
    color: #ddd;
    margin: 0 0 16px 0;
}

.tedx-text a {
    color: var(--red);
    font-weight: 700;
    text-decoration: none;
    position: relative;
    display: inline-block;
}

.tedx-text a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    height: 2px;
    width: 100%;
    background: linear-gradient(90deg, transparent, var(--red), transparent);
    animation: underlinePulse 3s ease-in-out infinite;
}

/* FOOTER */
footer {
    background: #000;
    color: #fff;
    padding: 40px;
    font-size: 14px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}

.event-logo {
    min-width: 220px;
}

.event-title {
    line-height: 1.05;
    font-weight: 700;
    font-size: 20px;
}

.event-title .ted {
    color: var(--red);
}

.event-title .x {
    color: var(--red);
    vertical-align: super;
    font-size: 14px;
    margin-left: 2px;
}

.event-title .bold {
    font-weight: 800;
}

.event-subline {
    font-size: 12px;
    color: var(--muted);
    margin-top: 6px;
}

.event-subline .x-red {
    color: var(--red);
    font-weight: 700;
}

.footer-links {
    margin-top: 6px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.footer-links a:hover {
    color: var(--red);
}

footer hr {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin: 22px 0;
}

.footer-bottom {
    text-align: center;
}

.social-icons {
    margin-bottom: 12px;
    display: flex;
    gap: 12px;
    justify-content: center;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #bbb;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.2s ease;
    opacity: 0.8;
}

.social-icons a:hover {
    background: rgba(235, 0, 40, 0.2);
    border-color: rgba(235, 0, 40, 0.4);
    color: #fff;
    opacity: 1;
    transform: translateY(-1px);
}

.license-text {
    color: #bdbdbd;
    font-size: 13px;
    margin-top: 6px;
}

/* Animations */
@keyframes hueShift {
    0% { filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(25deg); }
    100% { filter: hue-rotate(0deg); }
}

@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes sheen {
    0% { transform: translateX(-120%) rotate(10deg); }
    100% { transform: translateX(120%) rotate(10deg); }
}

@keyframes underlinePulse {
    0%, 100% { opacity: 0.4; transform: scaleX(0.8); }
    50% { opacity: 1; transform: scaleX(1); }
}

@keyframes pulseGlow {
    0% { transform: scale(0.96); opacity: 0.45; }
    50% { transform: scale(1.03); opacity: 0.65; }
    100% { transform: scale(0.98); opacity: 0.55; }
}

/* Responsive */
@media (max-width: 900px) {
    .hero {
        padding: 36px;
        background-size: 280px;
        justify-content: center;
        text-align: center;
        gap: 32px;
        min-height: auto;
    }

    .hero-text {
        max-width: 600px;
        flex: 1 1 100%;
        min-width: auto;
    }

    .hero img {
        max-width: 320px;
        flex: 0 0 auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .tedx-section {
        padding: 48px 24px;
        background-size: 320px;
    }

    .footer-top {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 520px) {
    .navbar {
        padding: 12px 16px;
    }

    .hero {
        padding: 28px 16px;
        gap: 24px;
        min-height: auto;
    }

    .hero-text {
        min-width: auto;
        flex: 1 1 100%;
    }

    .hero h1 {
        font-size: 24px;
    }

    .hero h2 {
        font-size: 18px;
    }

    .hero img {
        max-width: 260px;
        flex: 0 0 auto;
    }

    .tedx-section {
        padding: 36px 16px;
    }

    footer {
        padding: 28px 16px;
    }
}
